Anthropic recently introduced an open protocol to enable LLMs to more easily integrate with external data sources and tools. Model Context Protocol can thus be used to expose all kinds of products and services to LLMs and agents alike.
We’re excited to announce that we’ve already created a MCP server for Neon’s platform. It’s open source, and available today!
https://github.com/neondatabase/mcp-server-neon
See it in action: Claude can run (and test) migrations via the Neon API
Using Claude’s Desktop application, we can now interact with Neon’s platform using AI. At its core, this means that Claude can easily communicate with Neon’s API. For example, on the image below, we asked Claude to perform a database migration on a Neon project for us.
Claude figured out the migration SQL code to write, and it also leveraged Neon’s instant copy-on-write branching feature to perform the migration safety by applying it first in a temporary branch (that got deleted in the end).
Here’s a clip showcasing the entire experience:
Available actions (so far)
As part of this initial release, we’re exposing the following actions via MCP:
- list_projects
- describe_project
- create_project
- delete_project
- create_branch
- delete_branch
- describe_branch
- run_sql
- run_sql_transaction
- get_database_tables
- describe_table_schema
- start_database_migration
- commit_database_migration
These mostly map to Neon API endpoints. However, certain tools such as the database migration related ones are tailored specifically for the usage we expect from AI agents and LLMs. As we showed above, these help the model by running the expected SQL on a side branch first and then hinting the agent to test the migration and commit it as it sees fit.
Try it
We put this project together very quickly following the announcement from Anthropic, so we know there’s a lot to improve. You can check out our GitHub repository, and give us any feedback on our Discord server!