How to integrate Neon MCP with Hermes

Connect Hermes 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

Hermes is a 24/7 autonomous agent that lives on your computer or server — it remembers what it learns and evolves as your usage grows.

This guide explains the easiest and most robust way to connect your Neon account to Hermes. You can do this through either Composio Connect CLI or Composio Connect MCP. For personal use we recommend the CLI, but you won't go wrong with MCP either.

Also integrate Neon MCP with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 1,500+ applications directly into their agent harness — including Hermes. It can:

  • Search and load tools from relevant toolkits on-demand, reducing context usage.
  • Chain multiple tools to accomplish complex workflows via a remote workbench, without excessive back-and-forth with the LLM.
  • Manage app authentication end-to-end with zero manual overhead.

Integrating Neon with Hermes

Using Composio Connect CLI

1. Install the Composio CLI

Run the install script directly, or paste https://composio.dev/hermes into your Hermes chat box to have it installed for you.

bash
curl -fsSL https://composio.dev/install | bash
Hermes authenticating with Composio

2. Authenticate

Once the CLI is installed, ask Hermes to authenticate with Composio.

3. Connect to Neon

Ask your agent to connect to Neon, or simply request any Neon-related task. Hermes will prompt you to authenticate and authorize access.

4. Done. You're all set with a new Neon connection.


Using Composio Connect MCP

1. Get your MCP URL and API Key

Go to dashboard.composio.dev and copy your Connect MCP URL and API key.

Copy MCP URL and API key from Composio dashboard

2. Open the Hermes config file

bash
nano ~/.hermes/config.yaml

3. Add the Composio Connect MCP server

bash
mcp_servers:
  composio:
    url: "https://connect.composio.dev/mcp"
    headers:
      x-consumer-api-key: "YOUR_COMPOSIO_API_KEY"
    connect_timeout: 60
    timeout: 180

Save with Ctrl + O, Enter, then exit with Ctrl + X.

4. Restart your Hermes agent

Once restarted, ask your agent to connect to Neon or request any Neon-related task. It will prompt you to authenticate and authorize access.

5. Done!

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.

Way Forward

With Neon connected, Hermes can now act on your behalf whenever it detects a relevant task or you ask it to.

From here, you can extend Hermes further:

  • Connect more apps: Calendar, Slack, Notion, Linear, and hundreds of others are available through the same Composio Connect setup. Each new integration compounds what Hermes can do for you.
  • Build workflows across tools: Once multiple apps are connected, Hermes can chain actions together — turn an email into a calendar invite, a Slack message into a Linear ticket, or a meeting note into a follow-up draft.
  • Let it learn your patterns: The more you use Hermes, the better it gets at anticipating how you'd handle recurring tasks. Give it feedback on drafts and decisions, and it will adapt.

If you run into trouble or want to share what you've built, join the community or check out the Docs for deeper configuration options.

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. Hermes 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