MCP server for structured access to Gramps Web genealogy data
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Companion MCP server for the Gramps Web open-source genealogy platform. It gives AI agents structured, tool-based access to family trees through the Model Context Protocol.
This project is not a standalone genealogy UI or replacement for Gramps Web. Run it alongside an existing Gramps Web instance; your users, trees, media, permissions, and genealogy editing UI stay in Gramps Web.
See the tool catalog for the full list.
run-local-server.sh connects to the public demo.grampsweb.org
instance using well-known demo credentials (owner / owner):
The server starts with HTTP transport at http://127.0.0.1:8080/mcp. No API key is
required when binding to loopback only.
Pre-built multi-arch images (linux/amd64, linux/arm64) are published to
GitHub Container Registry. Docker picks the matching architecture automatically;
amd64 covers most Unraid and x86 hosts, arm64 covers Apple Silicon and ARM
SBCs:
The image exposes a GET /health endpoint for Docker HEALTHCHECK, Unraid
container health, and other uptime monitors. It returns HTTP 200 when the MCP
server can authenticate against Gramps Web, or HTTP 503 otherwise. The public
response is minimal by default: { "status": "healthy" } or
{ "status": "unhealthy" }. Startup logs include a line such as
Connected to Gramps Web at β¦ once the API is reachable.
The image defaults to Streamable HTTP (MCP_TRANSPORT=http) on port 8080, which
is what the commands above use. Clients that spawn the container themselves
(such as MCP Registry installs) instead run it over stdio with
-e MCP_TRANSPORT=stdio and stdin kept open (docker run -i); that is the mode
declared in server.json.
For read-only mode, add -e GRAMPS_READ_ONLY=true:
Unraid users can install gramps-web-mcp from Community Applications. The
template source is maintained at
Scormave/gramps-web-mcp-unraid.
For Unraid-specific help, see the
support thread on the Unraid forums.
Basic setup:
gramps-web-mcp and install the template.GRAMPS_API_URL, GRAMPS_USERNAME, GRAMPS_PASSWORD, and
GRAMPS_TREE_ID. Set MCP_API_KEY when the MCP port is reachable from
other machines on your network.8080, or map it to another host port./health; it returns HTTP 200 once the service
can authenticate to Gramps Web, with a minimal JSON response by default.For the easiest pairing, run Gramps Web and gramps-web-mcp on the same Unraid
Docker network and set GRAMPS_API_URL to the Gramps Web container URL. The MCP
endpoint for clients is http://<unraid-host>:<mapped-port>/mcp.
To run Gramps Web and the MCP server on the same host and Docker network, use
docker-compose.example.yml as a starting point:
Gramps Web is published on port 5055; MCP is on 8080 (/mcp and
/health). Inside the compose network the MCP container reaches Gramps Web at
http://grampsweb:5000.
One-click install for Claude Desktop is available as an MCP Bundle (.mcpb) from
GitHub Releases. Download the
bundle for your platform:
| Platform | Artifact |
|---|---|
| macOS Apple Silicon | gramps-web-mcp-claude-desktop-osx-arm64-v*.mcpb |
| macOS Intel | gramps-web-mcp-claude-desktop-osx-x64-v*.mcpb |
| Windows x64 | gramps-web-mcp-claude-desktop-win-x64-v*.mcpb |
| Linux x64 | gramps-web-mcp-claude-desktop-linux-x64-v*.mcpb |
| Linux ARM64 | gramps-web-mcp-claude-desktop-linux-arm64-v*.mcpb |
.mcpb file for your OS from the latest release.The extension runs locally over stdio and does not require the .NET SDK on your machine.
See mcpb/README.md for packaging details and
PRIVACY.md for the privacy policy.
To build a bundle locally:
stdio (e.g. Claude Desktop, Cursor):
To run a stdio server in read-only mode, add "GRAMPS_READ_ONLY": "true" to env.
HTTP (remote / Docker):
Point your MCP client at http://host:8080/mcp with Streamable HTTP transport.
When MCP_API_KEY is set, send it as Authorization: Bearer <key> or
X-Api-Key: <key> on every MCP request.
Vision-capable agents can read opt-in media through tools (GetMediaThumbnail,
GetMediaFile) or through binary MCP resources such as
gramps://media/{handle}/thumbnail/{size} and gramps://media/{handle}/file.
GetMediaFile returns image, audio, or embedded blob resource content depending
on MIME type. End-to-end analysis depends on the MCP client forwarding the typed
tool content or binary resource content to a capable model.
| Variable | Description |
|---|---|
GRAMPS_API_URL | Base URL of your Gramps Web instance (no trailing slash) |
GRAMPS_USERNAME | API user name |
GRAMPS_PASSWORD | API password or token |
GRAMPS_TREE_ID | Tree UUID on that server |
| Variable | Behavior | Default |
|---|---|---|
GRAMPS_READ_ONLY=true | Blocks create, update, and delete mutation calls while keeping tools visible | read/write |
Media byte tools/resources are disabled by default. get_media remains
available for metadata without enabling file downloads.
| Variable | Description | Default |
|---|---|---|
GRAMPS_MEDIA_RESOURCES_ENABLED | Enables binary media tools/resources for thumbnails and full files | false |
GRAMPS_MEDIA_MAX_BYTES | Maximum bytes returned by any media resource | 5242880 |
GRAMPS_MEDIA_ALLOWED_MIME_TYPES | Comma-separated allowlist; exact types and type/* wildcards are supported | image/jpeg,image/png,image/webp,image/avif,application/pdf |
GRAMPS_MEDIA_ALLOW_PRIVATE | Allows bytes for Gramps media records marked private | false |
Prefer GetMediaThumbnail or gramps://media/{handle}/thumbnail/{size} for AI
analysis. Full files can be large and sensitive, and are still subject to the
same size, MIME, and private-record checks.
Set GRAMPS_API_URL, GRAMPS_USERNAME, GRAMPS_PASSWORD, and GRAMPS_TREE_ID as usual.
MCP_TRANSPORT | Behavior |
|---|---|
(unset or stdio) | JSON-RPC over stdin/stdout (default; local clients). |
http | Streamable HTTP at MCP_PATH (default /mcp). Responses stream over SSE. Set ASPNETCORE_URLS (e.g. http://127.0.0.1:8080). |
sse | Legacy MCP SSE: GET {MCP_PATH}/sse + POST {MCP_PATH}/message. Stateful; use for older clients only. |
| Variable | Description | Default |
|---|---|---|
ASPNETCORE_URLS | Listen URLs for HTTP/SSE | β |
MCP_PATH | URL prefix for MCP endpoints | /mcp |
MCP_STATELESS | Stateless mode for Streamable HTTP | true |
MCP_ENABLE_LEGACY_SSE | Expose legacy /sse with http transport | false |
MCP_API_KEY | Shared secret for HTTP/SSE transport (comma-separated for rotation; min 16 characters) | β |
When MCP_API_KEY is set, all MCP HTTP/SSE endpoints require the key on every
request. GET /health stays anonymous for Docker and load-balancer probes.
Generate a key:
Without a key, the server still starts (backward compatible). If the listen
address is not loopback-only, a warning is logged recommending that you set
MCP_API_KEY, use a reverse proxy with its own authentication, or bind to
127.0.0.1 for local use only.
Inside Docker, ASPNETCORE_URLS is typically http://0.0.0.0:8080, so the
warning appears even when the host publishes the port on 127.0.0.1 only.
That is expected when external access is already restricted.
See CONTRIBUTING.md and the developer guide.
| Document | Description |
|---|---|
| docs index | All documentation files |
| Tool catalog | Complete MCP tool reference |
| Claude Desktop MCPB | Desktop extension packaging |
| Privacy policy | Data handling for the desktop extension |
| System prompt | Suggested prompt for MCP clients |
| Architecture | System design overview |
Contributions are welcome. See CONTRIBUTING.md.
To report a vulnerability, see SECURITY.md.
The Claude Desktop extension is a local MCP server. It sends data only to the Gramps Web instance you configure and does not collect analytics or conversation data. See PRIVACY.md for full details.
Copyright (c) Scormave
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-or-later). Because this is network server software, hosting a modified version requires making the corresponding source available to users interacting with it over a network.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gramps-web-mcp)<a href="https://allmcps.com/mcp/gramps-web-mcp"><img src="https://allmcps.com/api/badge/gramps-web-mcp?style=directory" alt="Gramps Web MCP on AllMCPs" /></a>