Gramps API + MCP Server + A2A Agent — genealogy (people/families/events/places/sources/media)
Project description
Gramps MCP
CLI or API | MCP | Agent
Version: 0.1.0
Documentation — Installation, deployment, usage across the API, CLI, and MCP interfaces, the integrated A2A agent server, and guidance for provisioning the backing platform are maintained in the official documentation.
Table of Contents
Overview
Gramps MCP MCP Server + A2A Agent
Gramps API + MCP Server + A2A Agent — genealogy (people/families/events/places/sources/media)
This repository is actively maintained - Contributions are welcome!
Key Features
- Action-routed MCP tools — each domain is exposed as a single MCP tool that routes
to many underlying operations via an
actionargument, keeping the tool surface small. - Three interfaces, one package — use it as a Python API client, an MCP server
(
stdio/streamable-http/sse), or a Pydantic-AI A2A agent. agent-utilitiesnative — built on the shared framework (auth, action router, telemetry, governance) for fleet consistency.- Per-tool toggles — enable or disable each tool domain with environment switches.
- Enterprise-ready — OTEL/Langfuse telemetry and optional Eunomia access governance.
Available MCP Tools
Each tool is action-routed: pass an action and a JSON params_json payload. Tool
domains can be toggled on or off with the listed environment variable. The table below is
auto-generated from the live server by the mcp-readme-table pre-commit hook
(python -m agent_utilities.mcp.readme_tools) — do not edit it by hand.
| MCP Tool | Toggle Env Var | Description |
|---|---|---|
gramps_bookmarks |
BOOKMARKSTOOL |
Manage Gramps bookmarks operations. CONCEPT:GRMP-001. |
gramps_chat |
CHATTOOL |
Manage Gramps chat operations. CONCEPT:GRMP-001. |
gramps_citations |
CITATIONSTOOL |
Manage Gramps citations operations. CONCEPT:GRMP-001. |
gramps_config |
CONFIGTOOL |
Manage Gramps config operations. CONCEPT:GRMP-001. |
gramps_dna |
DNATOOL |
Manage Gramps dna operations. CONCEPT:GRMP-001. |
gramps_events |
EVENTSTOOL |
Manage Gramps events operations. CONCEPT:GRMP-001. |
gramps_exporters |
EXPORTERSTOOL |
Manage Gramps exporters operations. CONCEPT:GRMP-001. |
gramps_facts |
FACTSTOOL |
Manage Gramps facts operations. CONCEPT:GRMP-001. |
gramps_families |
FAMILIESTOOL |
Manage Gramps families operations. CONCEPT:GRMP-001. |
gramps_filters |
FILTERSTOOL |
Manage Gramps filters operations. CONCEPT:GRMP-001. |
gramps_holidays |
HOLIDAYSTOOL |
Manage Gramps holidays operations. CONCEPT:GRMP-001. |
gramps_importers |
IMPORTERSTOOL |
Manage Gramps importers operations. CONCEPT:GRMP-001. |
gramps_living |
LIVINGTOOL |
Manage Gramps living operations. CONCEPT:GRMP-001. |
gramps_media |
MEDIATOOL |
Manage Gramps media operations. CONCEPT:GRMP-001. |
gramps_metadata |
METADATATOOL |
Manage Gramps metadata operations. CONCEPT:GRMP-001. |
gramps_name_formats |
NAME_FORMATSTOOL |
Manage Gramps name formats operations. CONCEPT:GRMP-001. |
gramps_name_groups |
NAME_GROUPSTOOL |
Manage Gramps name groups operations. CONCEPT:GRMP-001. |
gramps_notes |
NOTESTOOL |
Manage Gramps notes operations. CONCEPT:GRMP-001. |
gramps_oidc |
OIDCTOOL |
Manage Gramps oidc operations. CONCEPT:GRMP-001. |
gramps_people |
PEOPLETOOL |
Manage Gramps people operations. CONCEPT:GRMP-001. |
gramps_places |
PLACESTOOL |
Manage Gramps places operations. CONCEPT:GRMP-001. |
gramps_relations |
RELATIONSTOOL |
Manage Gramps relations operations. CONCEPT:GRMP-001. |
gramps_reports |
REPORTSTOOL |
Manage Gramps reports operations. CONCEPT:GRMP-001. |
gramps_repositories |
REPOSITORIESTOOL |
Manage Gramps repositories operations. CONCEPT:GRMP-001. |
gramps_search |
SEARCHTOOL |
Manage Gramps search operations. CONCEPT:GRMP-001. |
gramps_sources |
SOURCESTOOL |
Manage Gramps sources operations. CONCEPT:GRMP-001. |
gramps_tags |
TAGSTOOL |
Manage Gramps tags operations. CONCEPT:GRMP-001. |
gramps_tasks |
TASKSTOOL |
Manage Gramps tasks operations. CONCEPT:GRMP-001. |
gramps_timeline |
TIMELINETOOL |
Manage Gramps timeline operations. CONCEPT:GRMP-001. |
gramps_token |
TOKENTOOL |
Manage Gramps token operations. CONCEPT:GRMP-001. |
gramps_transactions |
TRANSACTIONSTOOL |
Manage Gramps transactions operations. CONCEPT:GRMP-001. |
gramps_translations |
TRANSLATIONSTOOL |
Manage Gramps translations operations. CONCEPT:GRMP-001. |
gramps_trees |
TREESTOOL |
Manage Gramps trees operations. CONCEPT:GRMP-001. |
gramps_types |
TYPESTOOL |
Manage Gramps types operations. CONCEPT:GRMP-001. |
gramps_users |
USERSTOOL |
Manage Gramps users operations. CONCEPT:GRMP-001. |
35 action-routed tools (default MCP_TOOL_MODE=condensed). Each is enabled unless its toggle is set false; set MCP_TOOL_MODE=verbose (or both) for the 1:1 per-operation surface. Auto-generated — do not edit.
Installation
Install with uvx (no install — run on demand)
uvx --from gramps-mcp gramps-mcp # MCP server
uvx --from gramps-mcp gramps-agent # A2A agent server
Install with pip
python -m pip install gramps-mcp # core (API client)
python -m pip install "gramps-mcp[all]" # + MCP server + A2A agent + telemetry
Console scripts
After installation the following entry points are available on your PATH:
| Command | Description |
|---|---|
gramps-mcp |
Launch the MCP server |
gramps-agent |
Launch the A2A agent server |
Usage
As a Python API client
from gramps_mcp.auth import get_client
client = get_client()
status = client.get_system_status()
print(status)
As an MCP server (CLI)
# Local stdio (for IDEs)
gramps-mcp
# Networked streamable-http
gramps-mcp --transport streamable-http --host 0.0.0.0 --port 8000
Calling an MCP tool
Tools are action-routed — pass an action plus a JSON params_json string:
{
"tool": "system_operations",
"arguments": {
"action": "status",
"params_json": "{}"
}
}
MCP
Using as an MCP Server
The MCP Server can be run in stdio (local), streamable-http (networked), or
sse mode.
Environment Variables
GRAMPS_URL: The URL of the target service.GRAMPS_TOKEN: The API token or access token.
stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
{
"mcpServers": {
"gramps-mcp": {
"command": "uvx",
"args": ["--from", "gramps-mcp", "gramps-mcp"],
"env": {
"GRAMPS_URL": "https://service.example.com",
"GRAMPS_TOKEN": "your_token"
}
}
}
}
Streamable-HTTP Transport (networked / production)
{
"mcpServers": {
"gramps-mcp": {
"command": "uvx",
"args": ["--from", "gramps-mcp", "gramps-mcp", "--transport", "streamable-http", "--port", "8000"],
"env": {
"TRANSPORT": "streamable-http",
"HOST": "0.0.0.0",
"PORT": "8000",
"GRAMPS_URL": "https://service.example.com",
"GRAMPS_TOKEN": "your_token"
}
}
}
}
Additional Deployment Options
gramps-mcp can also run as a local container (Docker / Podman / uv) or be
consumed from a remote deployment. The
Deployment guide has full,
copy-paste mcp_config.json for all four transports — stdio, streamable-http,
local container / uv, and remote URL:
- Local container / uv — launch the server from
mcp_config.jsonviauvx,docker run, orpodman run, or point at a local streamable-http container byurl. - Remote URL — connect to a server deployed behind Caddy at
http://gramps-mcp.arpa/mcpusing the"url"key.
Install Python Package
python -m pip install gramps-mcp
Documentation
Full documentation is published to the GitHub Pages site and mirrored under docs/:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gramps_mcp-0.1.0.tar.gz.
File metadata
- Download URL: gramps_mcp-0.1.0.tar.gz
- Upload date:
- Size: 53.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c585556672c64c72108ced3549584b11e3c6745ae2b97bd1e26e4c866d5cf62c
|
|
| MD5 |
ca8917c86722421605ce4290bb5b2282
|
|
| BLAKE2b-256 |
306ffa8de36e3f525eea9f49677dfe1d5cc0e9fd32ba8a44f4f0d9bd7b1cffea
|
File details
Details for the file gramps_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gramps_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 99.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3503b0da46c522b71a079202a9b83b3624d7a9638ce8f950a250c02cf513035f
|
|
| MD5 |
a27676f23334748b7b1cae42d8eefd4a
|
|
| BLAKE2b-256 |
0b58646a4ba76428eeb2d1fb434ca4870dff47c433327fb9d013e36d9d6a0375
|