Homebrew Age MCP Server

An MCP server for querying [Apache AGE](https://age.apache.org/) graphs in PostgreSQL.

Local serverstdioPython

What is the Homebrew Age MCP server?

Homebrew Age MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. An MCP server for querying Apache AGE graphs in PostgreSQL.

Setting it up

The server ships on PyPI as age_mcp_server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once Homebrew Age is connected, these are the calls the assistant has available:

  • read-age-cypher — Run a validated, parameterized, paginated read-only Cypher query
  • list-age-graphs — List Apache AGE graphs
  • get-age-schema — Inspect counts, directions, and sampled property types
  • write-age-cypher — Run Cypher containing a mutating clause
  • create-age-graph — Create a graph
  • drop-age-graph — Permanently drop a graph

Configuration and credentials

You will need 2 environment variables: PG_CONNECTION_STRING, PGPASSWORD. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Python 3.13 or later - PostgreSQL with the Apache AGE extension installed and loaded - A database role restricted to the graphs and operations the MCP client needs Enable AGE in the target database:

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the homebrew age mcp server does with a few real requests.

Choosing this one

Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Homebrew Age's toolset — read-age-cypher, list-age-graphs, get-age-schema and 3 more — is a fair guide to whether it matches your workflow. It is maintained by rioriost; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
read-age-cypherRun a validated, parameterized, paginated read-only Cypher query
list-age-graphsList Apache AGE graphs
get-age-schemaInspect counts, directions, and sampled property types
write-age-cypherRun Cypher containing a mutating clause
create-age-graphCreate a graph
drop-age-graphPermanently drop a graph

How to install the Homebrew Age MCP server

{
  "mcpServers": {
    "age_manager": {
      "command": "age_mcp_server",
      "env": {
        "PG_CONNECTION_STRING": "host=db.example port=5432 dbname=postgres user=age_reader sslmode=require",
        "PGPASSWORD": "replace-with-a-secret"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.13 or later - PostgreSQL with the Apache AGE extension installed and loaded - A database role restricted to the graphs and operations the MCP client needs Enable AGE in the target database:
VariableDescriptionRequired
PG_CONNECTION_STRINGConfiguration value read at startup.Optional
PGPASSWORDConfiguration value read at startup.Optional

Example prompts to try

  • Use Homebrew Age to read-age-cypher.
  • Use Homebrew Age to list-age-graphs.
  • Use Homebrew Age to get-age-schema.

Frequently asked questions

It connects Homebrew Age to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (read-age-cypher, list-age-graphs, get-age-schema, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Homebrew Age directly.