Skip to main content

Apache AGE MCP Server

Project description

AGE-MCP-Server

License Python

Apache AGE MCP Server

Apache AGE™ is a PostgreSQL Graph database compatible with PostgreSQL's distributed assets and leverages graph data structures to analyze and use relationships and patterns in data.

Azure Database for PostgreSQL is a managed database service that is based on the open-source Postgres database engine.

Introducing support for Graph data in Azure Database for PostgreSQL (Preview).

Table of Contents

Prerequisites

  • Python 3.13 and above
  • This module runs on psycopg
  • Enable the Apache AGE extension in your Azure Database for PostgreSQL instance. Login Azure Portal, go to 'server parameters' blade, and check 'AGE" on within 'azure.extensions' and 'shared_preload_libraries' parameters. See, above blog post for more information.
  • Load the AGE extension in your PostgreSQL database.
CREATE EXTENSION IF NOT EXISTS age CASCADE;
brew install claude

For configuration, see Add the Filesystem MCP Server.

Install

  • with brew
brew tap rioriost/age-mcp-server
brew install age-mcp-server
  • with uv
uv init your_project
cd your_project
uv venv
source .venv/bin/activate
uv add age-mcp-server
  • with python venv on macOS / Linux
mkdir your_project
cd your_project
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install age-mcp-server
  • with python venv on Windows
mkdir your_project
cd your_project
python -m venv venv
.\venv\Scripts\activate
python -m pip install age-mcp-server

Usage

  • brew on macOS claude_desktop_config.json is located in ~/Library/Application Support/Claude/.

Add the server to your claude_desktop_config.json as followings

{
  "mcpServers": {
    "age-manager": {
      "command": "age-mcp-server",
      "args": [
        "--pg-con-str",
        "host=your_server.postgres.database.azure.com port=5432 dbname=postgres user=your_username password=your_password"
        "--graph-name",
        "FROM_AGEFREIGHTER",
      ]
    }
  }
}
  • uv / Pyhon venv
{
  "mcpServers": {
    "age-manager": {
      "command": "/Users/your_username/.local/bin/uv",
      "args": [
        "--directory",
        "/path/to/your_project",
        "run",
        "age-mcp-server",
        "--pg-con-str",
        "host=your_server.postgres.database.azure.com port=5432 dbname=postgres user=your_username password=your_password"
        "--graph-name",
        "FROM_AGEFREIGHTER",
        "--debug"
      ]
    }
  }
}

After saving claude_desktop_config.json, start Claude Desktop Client.

Show me a graph schema Can you pick up a customer and calculate the sum of purchases? Can you find another customer buying more than Lisa?

Release Notes

0.1.4 Release

  • Draft release

0.1.3 Release

  • Draft release

0.1.2 Release

  • Draft release

0.1.1 Release

  • Draft release

0.1.0a1 Release

  • Draft release

For More Information

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

age_mcp_server-0.1.4.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

age_mcp_server-0.1.4-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file age_mcp_server-0.1.4.tar.gz.

File metadata

  • Download URL: age_mcp_server-0.1.4.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for age_mcp_server-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3a9ebe5b904cb957199435436726cb4a7037a17dbf4e43043c993db9a11c402a
MD5 06010408bd25566a20568eb9d89764b4
BLAKE2b-256 39ce73aa38abd10602507120e9da5678f15082de3807ce3afc243dc111ba08c1

See more details on using hashes here.

File details

Details for the file age_mcp_server-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for age_mcp_server-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 29adee2e9bafda5697b24382900c108cc8a556bcc810640892e2276fd3b1f2f7
MD5 8cf61a7007d4d65a67155cbd0350ce82
BLAKE2b-256 371d57266ce97a1fe52b5a6330f3f953e58d803a79228c84edaf83112c0d223d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page