Apache AGE MCP Server
These tools provide an interface for AI Agents to manage multiple graphs in Apache AGE. They expose tools for creating, updating, administering, and visualizing graphs.
| Tool Name | Description | Parameters |
|---|---|---|
get_or_create_graph |
Get or create a graph with the specified name. | graph_name: str |
list_graphs |
List all graph names in the database. | |
upsert_graph |
Upsert both vertices and edges into the specified graph (deep merge). | graph_name: str, vertices: List[Dict[str, Any]], edges: List[Dict[str, Any]] |
upsert_edge |
Insert or update an edge's properties in a graph non-destructively. | graph_name: str, label: str, edge_start_ident: str, edge_end_ident: str, properties: Dict[str, Any] |
upsert_vertex |
Insert or update a vertex's properties in a graph non-destructively. | graph_name: str, vertex_ident: str, label: str, properties: Dict[str, Any] |
drop_graphs |
Drop one or more graphs by name. | graph_names: List[str] |
drop_vertex |
Remove a vertex by ident. | graph_name: str, vertex_ident: str |
drop_edge |
Remove an edge by ident. | graph_name: str, edge_ident: str |
generate_visualization |
Generate a single-page HTML file visualizing a graph using vis.js and pyvis. | graph_name: str |
Server Installation
Install the latest release using pipx (recommended for CLI/server tools):
# Install
pipx install agemcp
# Postgres DSN / MCP Server Defaults
agemcp config
# Start the server
agemcp run
You should see something like this:
INFO: Starting MCP server 'agemcp' with transport 'streamable-http' on http://0.0.0.0:8000/mcp/
INFO: Started server process [13951]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
Client Installation
VSCode
- Open Command Palette (Cmd+Shift+P or Ctrl+Shift+P).
- Select
MCP: Add Server... - Choose "HTTP" option.
- Enter the server URL (e.g.,
http://localhost:8000/mcp/). - Enter a "server id" (e.g.,
agemcp). - Select
Globalfor the scope. - Done. (It should appear in the
extensionssidebar.)
Roo / Cline / Claude
{
"mcpServers": {
"agemcp": {
"url": "http://localhost:8000/mcp/",
"type": "streamable-http",
"headers": {
"Content-Type": "application/json"
}
}
}
}
Metadata
Release files for agemcp 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agemcp-0.5.3.tar.gz | 61.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agemcp-0.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 115.4 kB
Release files / agemcp-0.5.3.tar.gz
| Download URL | agemcp-0.5.3.tar.gz |
|---|---|
| Size | 61.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95f44bed2fbcabb5449c22f41c31d160696fab464fcaf11060562d54c7e9a974
|
|
BLAKE2b-256 checksum How to use checksums |
16ac6dda1b8dc2c8318df127aeba478dfed3de59ab31a040a0e3fbb324121159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / agemcp-0.5.3-py3-none-any.whl
| Download URL | agemcp-0.5.3-py3-none-any.whl |
|---|---|
| Size | 54.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69ff7a1f3a78c2166479b00ec2c76a7e6c0502930015262c4f602c4155e46d59
|
|
BLAKE2b-256 checksum How to use checksums |
6ca09a2e0d8f73a219b6dd173b94c6d2d0f009f65c3d6598240cf33d5160c50c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for agemcp 0.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.