Model Context Protocol (MCP) server for YDB. It lets any MCP-enabled LLM execute SQL, list directories and inspect paths in a YDB database through natural-language prompts.
https://github.com/ydb-platform/ydb-mcpStop context-switching between your AI assistant and database client. The YDB MCP server lets any MCP-enabled LLM directly query, explore, and analyze your YDB databases through natural language prompts.
You know the drill: you need to check something in your YDB database, but you can't remember the exact syntax for a query or directory listing. Instead of alt-tabbing to documentation or firing up a separate client, just ask your AI assistant:
Your LLM handles the YDB-specific commands and returns the results directly in your conversation.
The server provides exactly what you need for database exploration and analysis:
Each tool works through natural language - no need to remember command syntax or parameter formats.
Data Analysis Sessions: Instead of writing exploratory SQL queries by hand, describe what you're looking for. Your AI assistant writes and executes the queries, then helps interpret the results and suggests follow-up analysis.
Database Troubleshooting: When investigating issues, ask your assistant to check table schemas, recent data patterns, or connection status. It can execute multiple queries and correlate the results to help diagnose problems.
Schema Exploration: Working with an unfamiliar YDB database? Have your AI assistant map out the directory structure, describe table schemas, and identify relationships between tables through natural conversation.
Development Support: During development, quickly validate data changes, check constraint violations, or explore test data without leaving your coding environment.
Three ways to get started, all requiring minimal setup:
Fastest with uvx (no installation needed):
{
"mcpServers": {
"ydb": {
"command": "uvx",
"args": [
"ydb-mcp",
"--ydb-endpoint", "grpc://localhost:2136/local"
]
}
}
}
Via pipx for isolated installs:
{
"mcpServers": {
"ydb": {
"command": "pipx",
"args": [
"run", "ydb-mcp",
"--ydb-endpoint", "grpc://localhost:2136/local"
]
}
}
}
Traditional pip install for existing environments:
pip install ydb-mcp
Authentication options include anonymous access for development and login/password for production environments.
This isn't a community hack - it's an official MCP server from the YDB platform team. That means it follows YDB best practices, stays current with YDB features, and integrates cleanly with your existing YDB infrastructure.
The server handles connection management, authentication, and error handling so your AI assistant can focus on understanding your requests and providing useful analysis rather than dealing with database connection details.
Perfect for developers already using YDB who want to add AI-powered database interactions to their workflow without changing their existing setup or learning new tools.