How to integrate Neon MCP with Atomic Agent

Connect Atomic Agent to Neon MCP. Create a new neon project and database, deploy branch to staging and run migrations, and more using natural language, with authentication handled for you.

Neon MCP logoNeon MCP
Dcr Oauth

Neon MCP is a managed platform for Neon projects, branches, and databases. Use it to streamline development workflows and manage databases with clarity.

35 Tools

Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,500+ apps through Composio, including Neon.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Neon account. See the Atomic Agent documentation for installation instructions.

Also integrate Neon MCP with

How Atomic Agent connects to Neon

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect Neon to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in Neon. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your Neon account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

What is the Neon MCP server, and what's possible with it?

The Neon MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Neon account. It provides structured and secure access so your agent can perform Neon operations on your behalf.

Use Neon from Atomic Agent

With your account connected, ask Atomic Agent to work with Neon in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

TOOLS

Supported Tools

Every Neon MCP action and event your agent gets out of the box.

Compare database schema

Use this tool to compare the schema of a database between two branches.

Complete database migration

Complete a database migration by applying changes to the main branch and cleaning up the temporary branch.

Complete query tuning

Complete a query tuning session by either applying the changes to the main branch or discarding them.

Configure neon auth

Configure Neon Auth for a branch by specifying an `operation`.

Create branch

Create a branch in a Neon project for isolated development or testing.

Create project

Create a new Neon project with a default database and branch.

Delete branch

Delete a branch and all its data.

Delete project

Delete a Neon project and all its data.

Describe branch

Get a tree view of all objects in a branch, including databases, schemas, tables, views, and functions.

Describe project

Get details and configuration of a specific Neon project.

Describe table schema

Get column definitions, data types, and constraints for a specific table.

Explain sql statement

Analyze the query execution plan for a SQL statement using EXPLAIN ANALYZE.

Fetch

Fetch detailed information about a specific organization, project, or branch using the ID returned by the `search` tool.

Get connection string

Get a PostgreSQL connection string for a Neon database.

Get database tables

List all tables in a Neon database.

Get doc resource

Fetches a specific Neon documentation page as markdown content.

Get neon auth config

Read full Neon Auth configuration for a branch.

Inspect database

Reach for this first when asked why a database is slow, large, bloated, or behind.

List branch computes

List compute endpoints for a project or branch.

List docs resources

Lists all available Neon documentation pages by fetching the index from https://neon.

List log fields

List the log fields whose values list_log_field_values can enumerate for a branch.

List log field values

List the distinct values of a log field (e.

List organizations

List all organizations the current user belongs to.

List projects

List Neon projects in your account.

List shared projects

List projects shared with the current user for collaboration.

List slow queries

Use this tool to list slow queries from your Neon database.

Prepare database migration

This tool performs database schema migrations by automatically generating and executing DDL statements.

Prepare query tuning

This tool helps developers improve PostgreSQL query performance for slow queries or DML statements by analyzing execution plans and suggesting optimizations.

Provision neon auth

Provisions Neon Auth for a Neon branch.

Provision neon data api

Provisions the Neon Data API for a Neon branch.

Query logs

Query logs emitted by your Neon serverless functions (and other services like storage).

Reset from parent

Reset a branch to its parent's current state, discarding all changes made on the branch.

Run sql

Use this tool to execute a single SQL statement against a Neon database.

Run sql transaction

Use this tool to execute a SQL transaction against a Neon database, should be used for multiple SQL statements.

Search

Search across all organizations, projects, and branches by keyword.

FAQ

Frequently asked questions

With a standalone Neon MCP server, the agents and LLMs can only access a fixed set of Neon tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Neon and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Atomic Agent fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Neon tools.

Yes, absolutely. You can configure which Neon scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Neon data and credentials are handled as safely as possible.

Start with Neon MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Neon MCP tool your agent needs.Free to start.

Start building