Using Claude Code to manage Neon projects via MCP

Using Claude Code to manage Neon projects via MCP

Aug 5, 2025

Aug 5, 2025

Neon is just amazingly fast, serverless PostgreSQL with branching built in. But after using it for a few months, I just hit a wall. The dashboard wasn't keeping up. It was slow, the queries were stalling, and eventually I just tweeted about it.

To their credit, the Neon CEO himself replied (yes, seriously), and the team promptly fixed the backend issue. But when I thought about it yesterday, it left me with a thought:

Why am I even using a dashboard for this stuff?

So, I built an MCP (Model Context Protocol) server using Composio and Claude Code as my client, and it works great. Now, I manage all my Neon projects locally, without clicking things around or waiting for the dashboard to load - just prompts and a good, reliable speed.

But first, what even is MCP?

MCP serves as an adapter between LLMs (such as Claude) and the tools we use on a daily basis.

Think of it like a USB-C for your AI agents.

According to modelcontextprotocol.io:

"MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.”

With an MCP server, your LLM can integrate with your Neon project and interact with it just like a human would.

Wait, what is Composio in this?

If you're wondering how Composio fits in, think of Composio as the integration layer that manages authentication, configuration, and plugs apps like Neon into your AI workflow.

You can run your MCPs, but that means handling:

  • Auth (OAuth, API keys)

  • Manually describing and optimizing each tool in the proper format for LLMs to understand

With Composio, you skip all that. Select an app from their dashboard (such as Neon), connect it, and you're done. It’s accessible from Claude, Cursor, Windsurf, or even curl.

credits: modelcontextprotocol

In this blog post, I'll walk you through:

  • What’s Neon MCP by Composio, and what can you do with it?

  • How I set it up and now use Claude to manage projects locally

  • How you can build this setup too, in minutes

What's Neon MCP by Composio (and why it's useful)?

Composio provides an MCP server that bridges Claude (or any LLM) with tools like Neon. It handles auth, context, and execution of tasks via simple, structured actions. Here's what you can do with it:

  • NEON_CREATE_PROJECT_WITH_QUOTA_AND_SETTINGS: Create a new project with a specific quota and settings.

  • NEON_CREATE_BRANCH_DATABASE: Create a new branch database.

  • NEON_RETRIEVE_BRANCH_DATABASE_DETAILS: Retrieve the details of a branch database.

  • NEON_RETRIEVE_PROJECT_LIST: Retrieve the list of projects.

  • NEON_DELETE_PROJECT_BY_ID: Delete a project by its ID, and more...

What I built (and why it helped)

I switch between projects frequently, testing ideas, spinning up new databases, and cleaning up old ones. Managing that from a slow UI was painful.

Now, I ask Claude things like:

“Create a new Neon project called test-db, with default settings.”

And it just works.

How to set it up (and use it yourself)

You’ll need:

  1. Composio Neon MCP

  2. Claude Code

  3. Neon and your API key, which you can get from the dashboard itself.

Option 1: Using the Composio MCP page (quick and easy)

  1. Head to the Neon MCP

  2. Click the Claude tab → Generate → Copy the command

  3. Run it in your terminal:

npx @composio/mcp@latest setup "<https://mcp.composio.dev/partner/composio/neon/mcp?customerId=[your-customer-id]>" "neon-lig0gc-38" --client
  1. Then copy the config file to your local project:

cp
  1. Start Claude (claude) and prompt it to authenticate using your Neon API key.

Option 2: Using the Composio Dashboard (more control)

If you want more control over your Neon workflows. Here’s how to get started using the dashboard

  1. Head to the Composio Dashboard

  2. Navigate to MCP Confgs → Click “Create MCP Config

  3. Give the configuration a name, choose Neon as your toolkit, and move to the Integration step. But before that, select the tools you want your agent to use.

  4. In the integration step, you’ll be redirected back to MCP Configs. Search for your newly created config, then click “Create New Server” and paste your Neon API key.

  5. Click “Connect Account” and copy the generated command to run it locally. You won't see it again, so keep it in a secure place.

Quick test: Try something like this to verify it’s working:

Using the MCP server with Claude Code

With everything set up, just open Claude Code and try stuff like:

  • “Show me all existing Neon projects.”

  • “Delete the test-db project.”

  • “Create a branch on dev-db.”

Works across Cursor, Claude, Windsurf, or even plain HTTP endpoints.

Conclusion

I built this out of frustration, but ended up with a local, Claude-powered dev workflow I now genuinely enjoy using.

If you’re tired of slow dashboards or clicking through UIs, give this a shot. It’s fast, flexible, and kind of fun once it’s all set up.

Neon is just amazingly fast, serverless PostgreSQL with branching built in. But after using it for a few months, I just hit a wall. The dashboard wasn't keeping up. It was slow, the queries were stalling, and eventually I just tweeted about it.

To their credit, the Neon CEO himself replied (yes, seriously), and the team promptly fixed the backend issue. But when I thought about it yesterday, it left me with a thought:

Why am I even using a dashboard for this stuff?

So, I built an MCP (Model Context Protocol) server using Composio and Claude Code as my client, and it works great. Now, I manage all my Neon projects locally, without clicking things around or waiting for the dashboard to load - just prompts and a good, reliable speed.

But first, what even is MCP?

MCP serves as an adapter between LLMs (such as Claude) and the tools we use on a daily basis.

Think of it like a USB-C for your AI agents.

According to modelcontextprotocol.io:

"MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.”

With an MCP server, your LLM can integrate with your Neon project and interact with it just like a human would.

Wait, what is Composio in this?

If you're wondering how Composio fits in, think of Composio as the integration layer that manages authentication, configuration, and plugs apps like Neon into your AI workflow.

You can run your MCPs, but that means handling:

  • Auth (OAuth, API keys)

  • Manually describing and optimizing each tool in the proper format for LLMs to understand

With Composio, you skip all that. Select an app from their dashboard (such as Neon), connect it, and you're done. It’s accessible from Claude, Cursor, Windsurf, or even curl.

credits: modelcontextprotocol

In this blog post, I'll walk you through:

  • What’s Neon MCP by Composio, and what can you do with it?

  • How I set it up and now use Claude to manage projects locally

  • How you can build this setup too, in minutes

What's Neon MCP by Composio (and why it's useful)?

Composio provides an MCP server that bridges Claude (or any LLM) with tools like Neon. It handles auth, context, and execution of tasks via simple, structured actions. Here's what you can do with it:

  • NEON_CREATE_PROJECT_WITH_QUOTA_AND_SETTINGS: Create a new project with a specific quota and settings.

  • NEON_CREATE_BRANCH_DATABASE: Create a new branch database.

  • NEON_RETRIEVE_BRANCH_DATABASE_DETAILS: Retrieve the details of a branch database.

  • NEON_RETRIEVE_PROJECT_LIST: Retrieve the list of projects.

  • NEON_DELETE_PROJECT_BY_ID: Delete a project by its ID, and more...

What I built (and why it helped)

I switch between projects frequently, testing ideas, spinning up new databases, and cleaning up old ones. Managing that from a slow UI was painful.

Now, I ask Claude things like:

“Create a new Neon project called test-db, with default settings.”

And it just works.

How to set it up (and use it yourself)

You’ll need:

  1. Composio Neon MCP

  2. Claude Code

  3. Neon and your API key, which you can get from the dashboard itself.

Option 1: Using the Composio MCP page (quick and easy)

  1. Head to the Neon MCP

  2. Click the Claude tab → Generate → Copy the command

  3. Run it in your terminal:

npx @composio/mcp@latest setup "<https://mcp.composio.dev/partner/composio/neon/mcp?customerId=[your-customer-id]>" "neon-lig0gc-38" --client
  1. Then copy the config file to your local project:

cp
  1. Start Claude (claude) and prompt it to authenticate using your Neon API key.

Option 2: Using the Composio Dashboard (more control)

If you want more control over your Neon workflows. Here’s how to get started using the dashboard

  1. Head to the Composio Dashboard

  2. Navigate to MCP Confgs → Click “Create MCP Config

  3. Give the configuration a name, choose Neon as your toolkit, and move to the Integration step. But before that, select the tools you want your agent to use.

  4. In the integration step, you’ll be redirected back to MCP Configs. Search for your newly created config, then click “Create New Server” and paste your Neon API key.

  5. Click “Connect Account” and copy the generated command to run it locally. You won't see it again, so keep it in a secure place.

Quick test: Try something like this to verify it’s working:

Using the MCP server with Claude Code

With everything set up, just open Claude Code and try stuff like:

  • “Show me all existing Neon projects.”

  • “Delete the test-db project.”

  • “Create a branch on dev-db.”

Works across Cursor, Claude, Windsurf, or even plain HTTP endpoints.

Conclusion

I built this out of frustration, but ended up with a local, Claude-powered dev workflow I now genuinely enjoy using.

If you’re tired of slow dashboards or clicking through UIs, give this a shot. It’s fast, flexible, and kind of fun once it’s all set up.