gramps-effect-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gramps-effect-mcpFind all ancestors of John Doe and list their birth dates."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gramps-effect-mcp
An Effect TypeScript MCP server for safe access to Gramps Web. It exposes Gramps records, relationships, timelines, media, and verified mutations to Claude Desktop, OpenCode, and other Model Context Protocol clients over stdio.
Overview
This project is a replacement for the legacy Gramps MCP surface. It keeps the familiar read, analysis, create, update, delete, media, and convenience tools while putting every mutation through one serialized write pipeline. References are resolved at every registered depth, writes are read back from Gramps, and integrity scans report repair suggestions without changing records.
The tested target is Gramps Web API 3.19.0 with Gramps 6.0.8. Other Gramps Web 3.x releases are unverified compatibility targets. The MCP integration uses the experimental @effect/ai@0.37.0 package and has been tested with MCP protocol version 2025-06-18. See the dependency matrix for every exact Effect package pin.
Related MCP server: obsidian-modified-mcp-server
Install
Requirements:
Node.js 22 or newer
A reachable Gramps Web instance with an API user
git clone https://example.com/your/gramps-effect-mcp.git
cd gramps-effect-mcp
npm ci
npm run buildThe compiled stdio server starts with:
npm startIt communicates on stdin and stdout. It doesn't open an HTTP port.
Config
Set the required connection variables in the MCP client's environment. Keep credentials in the client configuration or its secret store, not in this repository.
Variable | Default | Description |
| Required | Gramps Web base URL, for example |
| Required | Gramps Web API username. |
| Required | Gramps Web API password. It is held as a redacted value by the application. |
| Unset | Optional API URL for test configuration. Production clients normally leave this unset. |
|
| Enables conditional writes only when the server supplies an ETag accepted by PUT preconditions. Leave disabled for 3.19.0. |
|
| Maximum number of GET attempts started per second, including retries. |
|
| HTTP request timeout in milliseconds. |
|
| Maximum read attempts, including the first request. Mutations are never retried automatically. |
|
| Allows MCP clients to read media file and thumbnail bytes. |
|
| Allows media uploads through the verified write pipeline. Independent of media exposure. |
|
| Maximum exposed or uploaded media size in bytes, 10 MiB by default. |
|
| Comma-separated allowlist used by media exposure and upload policy. |
|
| Allows media marked private to cross the media boundary. |
Client Wiring
Build the project first, then point the MCP client at the absolute path to dist/main.js. The same mcpServers entry works in Claude Desktop and MCP clients that use the standard JSON shape:
{
"mcpServers": {
"gramps": {
"command": "node",
"args": ["/absolute/path/to/gramps-effect-mcp/dist/main.js"],
"env": {
"GRAMPS_API_URL": "https://gramps.example.com",
"GRAMPS_USERNAME": "your-api-user",
"GRAMPS_PASSWORD": "set-this-in-your-client-secret-store"
}
}
}
}For Claude Desktop, add the entry to the application's MCP configuration and restart Claude Desktop. For OpenCode, add the same server command, arguments, and environment to its MCP configuration. Other stdio MCP clients need the equivalent command and environment fields. Don't run the server through a shell wrapper that writes status messages to stdout, since stdout is reserved for MCP JSON-RPC messages.
Operational Docs
Safety and capability model
Deep resolution: Gramps IDs and opaque handles are resolved at every registered reference path before a write is sent. Free text isn't scanned for ID-like strings.
Serialized writes: one semaphore covers reference resolution, mutation, read-back verification, and resolver cache invalidation for a complete logical write.
Verified results: each returned handle is fetched again. Supplied semantic fields are compared with the canonical server form rather than raw request bytes.
Integrity scans:
scan_integrityreports stale references, reciprocal-link problems, and suggested repair tools. It doesn't mutate the tree.Capability states: metadata, JWT permissions, server media support, and local policy determine media exposure, upload, semantic-search, task-queue, and transaction availability. Transaction eligibility requires
AddObject,EditObject, andDeleteObjectpermissions.
Gramps fills defaults, recalculates date sort values, normalizes handles, expands type values, and updates server-owned fields. The verifier accounts for these transforms. See server canonicalizations for the exact 3.19.0 behavior.
Write outcomes
The write pipeline has four outcomes. A client must not treat all four as interchangeable:
Outcome | Meaning | Operator action |
| Gramps committed the write and a fresh read matched the requested semantic fields. | Continue normally. |
| Gramps committed the write, but read-back verification found missing or different fields. | Inspect the returned reference and problems before another write. Don't retry blindly. |
| Validation, resolution, permissions, conflict checks, or another pre-mutation step rejected the operation. Compound operations can still report refs committed by earlier sequential steps. | Correct the reported error. Review any returned refs before retrying a compound operation. |
| A transport failure happened after mutation bytes may have been sent, so commit status can't be proven. Compound operations can report earlier committed refs. | Read the target state before deciding whether to retry. |
Mutation retries are disabled because a dropped response can't prove that Gramps received no request bytes. Reads retry only transport failures, rate limits, HTTP 429, and HTTP 5xx responses, using jittered exponential backoff with bounded attempts and elapsed time. See the retry policy for the exact schedule.
Media flags
Media exposure and upload are separate controls:
GRAMPS_MEDIA_RESOURCES_ENABLEDgates downloads and thumbnails returned to the MCP client. It defaults tofalseto prevent accidental file disclosure.GRAMPS_MEDIA_UPLOAD_ENABLEDgates binary uploads. It defaults totrue, but uploads still require server support, permissions, MIME approval, size approval, and read-back verification.GRAMPS_MEDIA_MAX_BYTES,GRAMPS_MEDIA_ALLOWED_MIME_TYPES, andGRAMPS_MEDIA_ALLOW_PRIVATEapply to both boundaries.
Disabling exposure doesn't disable upload. Disabling upload doesn't expose existing files.
ETags and concurrent writes
GRAMPS_IF_MATCH_ENABLED defaults to false for Gramps Web API 3.19.0. In the tested server, GET ETags hash response JSON while PUT compares an internal object digest that the item endpoint doesn't expose. A GET token therefore fails an immediate PUT precondition. Enable conditional writes only after proving that the target server returns a usable token. The full probe and decision are recorded in ETag findings.
The server still serializes and verifies writes when ETags are disabled. If a target has working conditional writes, overlapping field changes are rejected, while disjoint changes can be merged and retried once.
Secret Scanning
Install the tracked pre-commit hook once per clone:
npm run hooks:installThe hook requires gitleaks on PATH and scans staged changes before every
commit. Scan the complete working tree manually with:
npm run secrets:scanTest Commands
npm test
npm run test:live
npm run test:final
npm run typecheck
npm run buildnpm testruns the unit project without starting Gramps.npm run test:liveboots a disposable loopback instance pinned togramps-webapi==3.19.0and Gramps 6.0.8. It requiresuvand never usesGRAMPS_API_URL.npm run test:finalruns final compliance and scope checks.npm run typecheckchecks the strict TypeScript project without emitting files.npm run buildcompiles the stdio server intodist/.
The captured legacy tool schemas and parity baseline are in docs/legacy-tools.json. Final compliance tests check the production registry against that contract.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA TypeScript MCP server for managing persistent knowledge graphs with entities, directional relations, and time-based observations. It enables users to create, search, and track structured information with built-in concurrency control and JSON file storage.
- AlicenseAqualityDmaintenanceTypeScript MCP server for Obsidian with core vault operations, graph analytics, and semantic search.3214MIT
- Alicense-qualityBmaintenanceA production-ready MCP server for Airtable that enables programmatic management of bases, tables, fields, and records through Claude Desktop or other MCP clients using Effect for type-safe and robust API interactions.131MIT
- AlicenseAqualityBmaintenancePersistent knowledge graph MCP server with SQLite backend, offering graph traversal, fuzzy search, and temporal queries for entities and relations. It serves as a drop-in replacement for the npm mcp-server-memory with enhanced capabilities.12MIT
Related MCP Connectors
MCP server for interacting with the Supabase platform
MCP (Model Context Protocol) server for Appwrite
MCP server for managing Prisma Postgres.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/htayj/gramps-effect-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server