MCP servers
The Model Context Protocol (MCP) is an industry standard that lets an AI client discover and call tools. While the client is answering, it can call a tool to search documentation, run a query, or change a resource, and then use the result.
Servers
YugabyteDB publishes the following servers.
| Server | Purpose | Audience |
|---|---|---|
| YugabyteDB MCP Server | Query a database. Summarize a schema, run read-only SQL, and optionally run guarded writes. | Developers with a YugabyteDB or PostgreSQL database. |
| AMP MCP Server TP | Manage Serverless Postgres clusters, branches, and endpoints in YugabyteDB Aeon. | Aeon users managing Serverless Postgres from an AI client. |
| Docs MCP Server | Look up official documentation, API and CLI references, blogs, and support articles. | Anyone answering questions about YugabyteDB from an IDE or AI tool. |
Skills
YugabyteDB Agent Skills provide guidance for clients working with YugabyteDB, including schema design, queries, RAG, performance checks, and the Aeon and Anywhere APIs. The yugabytedb-skills repository lists the skills and provides installation instructions.
To install all skills at once, run the following command:
npx skills add yugabyte/yugabytedb-skills
How clients connect
A client connects to a server in one of two ways:
- Remote HTTP. The server is hosted at a URL. You register that URL. Some servers also require a header, such as an API key. The Docs MCP Server and the AMP MCP Server use this method.
- Local command. The client starts a program on your computer, and that program connects to your database. The YugabyteDB MCP Server uses this method.
For commands, configuration, and sign-in instructions, see the individual server documentation. Common clients include Claude Code, Claude Desktop, Cursor, Visual Studio Code, Windsurf, and ChatGPT. After you add a server, restart the client or reconnect it.
Security
Read-only and write tools
Read-only tools fetch information. A schema summary, a SELECT, a search of the docs, and a list of clusters don't change your data.
Write tools create, update, or delete. The AMP MCP Server asks you to confirm every write. When the client supports MCP elicitation, the server shows a dialog, and auto-approve doesn't skip it. Otherwise, the client describes the request in the chat and sends it only after you agree. This relies on the client following the server's instructions, so don't set the client to auto-approve AMP tools.
The YugabyteDB MCP Server marks its write tool as destructive, and the client decides whether to prompt. A client set to auto-approve, or a tool you have already allowed, runs that write with no prompt. On that server, write queries also stay off until you enable them.
The credential limits the change: grant it only the access the task needs. A read-only database role can run the read tools. An Aeon API key with only Read permission can list resources and can't create, update, or delete.
The client chooses the call and interprets the result. After a change, check the result in the database or in YugabyteDB Aeon.
Credentials
A connection string, database password, or API key in a client configuration is a secret.
- Keep it out of any file you commit, including a project
.mcp.jsonor.cursor/mcp.json. - Some clients store the value in plain text. Claude Code writes request headers to
~/.claude.json. - When a key expires, or you think it has leaked, revoke it, create a new one, and update the client configuration.
Each server uses a different credential:
- The Docs MCP Server uses a Google sign-in.
- The AMP MCP Server uses a YugabyteDB Aeon API key from the Serverless account.
- The YugabyteDB MCP Server uses a database connection string.