
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets MCP-capable LLMs work with YDB databases, running built-in query, explain, directory and status tools against a YDB connection.
YDB MCP is cataloged as an MCP server attributed to ydb-platform. A Model Context Protocol server that lets MCP-capable LLMs work with YDB databases, running built-in query, explain, directory and status tools against a YDB connection. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for YDB MCP are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The server runs read-only by default, and write queries are only allowed when explicitly enabled with a flag.
Login/password, access token and service account authentication can be configured.
README.md · 1ee9df3598ab · 采集于 2026-11-13 09:52:40 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Model Context Protocol server for YDB. It allows to work with YDB databases from any LLM that supports MCP. This integration enables AI-powered database operations and natural language interactions with your YDB instances.
uvx, which is an allias for uv run tool, allows you to run various python applications without explicitly installing them. Below are examples of how to configure YDB MCP using uvx.
{
"mcpServers": {
"ydb": {
"command": "uvx",
"args": [
"ydb-mcp",
"--ydb-endpoint", "grpc://localhost:2136",
"--ydb-database", "/local"
]
}
}
}
pipx allows you to run various applications from PyPI without explicitly installing each one. However, it must be installed first. Below are examples of how to configure YDB MCP using pipx.
{
"mcpServers": {
"ydb": {
"command": "pipx",
"args": [
"run", "ydb-mcp",
"--ydb-endpoint", "grpc://localhost:2136",
"--ydb-database", "/local"
]
}
}
}
YDB MCP can be installed using pip, Python's package installer. The package is available on PyPI and includes all necessary dependencies.
pip install ydb-mcp
To get started with YDB MCP, you'll need to configure your MCP client to communicate with the YDB instance. Below are example configuration files that you can customize according to your setup and then put into MCP client's settings. Path to the Python interpreter might also need to be adjusted to the correct virtual environment that has the ydb-mcp package installed.
{
"mcpServers": {
"ydb": {
"command": "python3",
"args": [
"-m", "ydb_mcp",
"--ydb-endpoint", "grpc://localhost:2136",
"--ydb-database", "/local"
]
}
}
}
Regardless of the usage method (uvx, pipx or pip), you can configure authentication for your YDB installation. To do this, pass special command line arguments.
To use login/password authentication, specify the --ydb-auth-mode, --ydb-login, and --ydb-password arguments:
{
"mcpServers": {
"ydb": {
"command": "uvx",
"args": [
"ydb-mcp",
"--ydb-endpoint", "grpc://localhost:2136",
"--ydb-database", "/local",
"--ydb-auth-mode", "login-password",
"--ydb-login", "<your-username>",
"--ydb-password", "<your-password>"
]
}
}
}
To use access token authentication, specify the --ydb-auth-mode and --ydb-access-token arguments:
{
"mcpServers": {
"ydb": {
"command": "uvx",
"args": [
"ydb-mcp",
"--ydb-endpoint", "grpc://localhost:2136",
"--ydb-database", "/local",
"--ydb-auth-mode", "access-token",
"--ydb-access-token", "qwerty123"
]
}
}
}
Service account authentication requires the yandexcloud package, which is not installed by default. Make sure it is available in the environment that runs YDB MCP:
--with yandexcloud (passed before ydb-mcp).pipx install ydb-mcp followed by pipx inject ydb-mcp yandexcloud.pip install ydb-mcp yandexcloud.To use service account authentication, specify the --ydb-auth-mode and --ydb-sa-key-file arguments:
{
"mcpServers": {
"ydb": {
"command": "uvx",
"args": [
"--with", "yandexcloud",
"ydb-mcp",
"--ydb-endpoint", "grpc://localhost:2136",
"--ydb-database", "/local",
"--ydb-auth-mode", "service-account",
"--ydb-sa-key-file", "~/sa_key.json"
]
}
}
}
Use a grpcs:// endpoint to connect over TLS. If the cluster certificate is issued by a private CA, pass a path to the PEM file with its root certificates via --ydb-root-certificates; otherwise the system trust store is used:
{
"mcpServers": {
"ydb": {
"command": "uvx",
"args": [
"ydb-mcp",
"--ydb-endpoint", "grpcs://localhost:2135",
"--ydb-database", "/local",
"--ydb-root-certificates", "~/ydb_ca.pem"
]
}
}
}
The server runs queries in read-only mode by default. Read-only queries use native YDB snapshot read-only transactions,
so data and schema writes are rejected by YDB itself without relying on SQL text matching. The mode applies to both
built-in query tools and custom tools that call YDBMCPServer.execute().
To explicitly allow write queries, set --ydb-allow-write:
{
"mcpServers": {
"ydb": {
"command": "uvx",
"args": [
"ydb-mcp",
"--ydb-endpoint", "grpc://localhost:2136",
"--ydb-database", "/local",
"--ydb-allow-write"
]
}
}
}
The same setting can be provided through YDB_ALLOW_WRITE=true. Enable it only when writes are intended, and
prefer read-only YDB credentials as an additional permission boundary whenever the server does not need to modify data.
YDB MCP provides the following tools for interacting with YDB databases:
ydb_query: Run a SQL query against a YDB database
sql: SQL query string to executeydb_query_with_params: Run a parameterized SQL query with JSON parameters
sql: SQL query string with parameter placeholdersparams: JSON string containing parameter valuesydb_explain_query: Explain a SQL query (returns the execution plan)
sql: SQL query string to explainydb_explain_query_with_params: Explain a parameterized SQL query
sql: SQL query string with parameter placeholdersparams: JSON string containing parameter valuesydb_list_directory: List directory contents in YDB
path: YDB directory path to listydb_describe_path: Get detailed information about a YDB path (table, directory, etc.)
path: YDB path to describeydb_status: Get the current status of the YDB connection
YDBMCPServer is designed to be subclassed. You can add your own tools on top of an established YDB connection and, optionally, disable the built-in generic tools to expose only the queries your application needs.
Override or call these in your subclass:
| Method | Description |
|---|---|
await self.execute(sql, params=None) | Run a SQL query. Returns list[dict], each dict has "columns" and "rows". |
await self.explain(sql, params=None) | Return the query execution plan as a dict. |
await self.list_directory(path) | List a YDB directory. Returns dict with "path" and "items". |
await self.describe_path(path) | Describe a YDB path (table schema, directory, etc.). Returns a dict. |
The params argument is a plain dict. Keys without a $ prefix get it added automatically. To specify an explicit YDB type, use a (value, "TypeName") tuple — e.g. {"id": (42, "Int64")}.
Use the generic_tools class attribute to control which built-in tools are registered:
| Value | Effect |
|---|---|
set(YDBGenericTool) | All built-in tools (default) |
set() | No built-in tools — only your own |
{YDBGenericTool.QUERY, YDBGenericTool.STATUS} | Only the listed tools |
YDBGenericTool is a string enum — available values: QUERY, QUERY_WITH_PARAMS, EXPLAIN, EXPLAIN_WITH_PARAMS, STATUS, LIST_DIRECTORY, DESCRIBE_PATH.
# my_server.py
from ydb_mcp import YDBMCPServer, YDBGenericTool, serialize_ydb_response
class OrdersServer(YDBMCPServer):
"""Minimal read-only MCP server for the orders service."""
generic_tools = {YDBGenericTool.STATUS} # keep status check for diagnostics
def __init__(self, **kwargs):
super().__init__(**kwargs)
@self.tool()
async def get_order(order_id: str) -> str:
"""Fetch a single order by ID."""
rows = await self.execute(
"SELECT * FROM orders WHERE id = $id",
{"id": order_id},
)
return serialize_ydb_response(rows)
@self.tool()
async def list_recent_orders(limit: int = 10) -> str:
"""Return the most recent orders."""
rows = await self.execute(
"SELECT * FROM orders ORDER BY created_at DESC LIMIT $limit",
{"limit": limit},
)
return serialize_ydb_response(rows)
if __name__ == "__main__":
OrdersServer(
endpoint="grpc://localhost:2136",
database="/local",
).run()
Run it directly:
python my_server.py
Or wire it up as an MCP server in your client config:
{
"mcpServers": {
"orders": {
"command": "python",
"args": ["my_server.py"]
}
}
}
The project uses Make as its primary development tool, providing a consistent interface for common development tasks.
The project includes a comprehensive Makefile with various commands for development tasks. Each command is designed to streamline the development workflow and ensure code quality:
make all: Run clean, lint, and test in sequence (default target)make clean: Remove all build artifacts and temporary filesmake test: Run all tests using pytest
LOG_LEVEL (default: WARNING) - Control test output verbosity (DEBUG, INFO, WARNING, ERROR)make unit-tests: Run only unit tests with verbose output
LOG_LEVEL (default: WARNING) - Control test output verbosity (DEBUG, INFO, WARNING, ERROR)make integration-tests: Run only integration tests with verbose output
YDB_ENDPOINT (default: grpc://localhost:2136)YDB_DATABASE (default: /local)MCP_HOST (default: 127.0.0.1)MCP_PORT (default: 8989)LOG_LEVEL (default: WARNING) - Control test output verbosity (DEBUG, INFO, WARNING, ERROR)make run-server: Start the YDB MCP server
YDB_ENDPOINT (default: grpc://localhost:2136)YDB_DATABASE (default: /local)ARGS="your args"make lint: Run all linting checks (flake8, mypy, black, isort)make format: Format code using black and isortmake install: Install the package in development modemake dev: Install the package in development mode with all development dependenciesBy default, tests run with minimal output (WARNING level) to keep the output clean. You can control the verbosity of test output using the LOG_LEVEL environment variable:
# Run all tests with debug output
make test LOG_LEVEL=DEBUG
# Run integration tests with info output
make integration-tests LOG_LEVEL=INFO
# Run unit tests with warning output (default)
make unit-tests LOG_LEVEL=WARNING
Available log levels:
DEBUG: Show all debug messages, useful for detailed test flowINFO: Show informational messages and aboveWARNING: Show only warnings and errors (default)ERROR: Show only error messagesClaim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for YDB MCP from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/ydb-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.