Alexey-N-Chernyshov/gramps-web-mcp-rs
MCP server for Gramps Web genealogy API, written in Rust. Inspired by gramps-mcp — more tools, test coverage, smaller image, optional read-only mode.
a12d0e31c9c9gramps-web-mcp-rs1.8.1 in Cargo.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety and Capability Exposure are shown as partly traced instead of a score: no finding there is not a clean result.
- In 41 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- MEDIUM4 production dependencies have known vulnerabilities (worst: medium).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Update its vulnerable packages
Use
url2.5.9 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 44 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
None of the tools reaches any of these in the code the scanner could trace.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (44: 44 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
create_citationtool Create a new citation linking a source by handle
Create a new citation linking a source by handle
create_eventtool Create a new event (birth, death, marriage, etc.)
Create a new event (birth, death, marriage, etc.)
create_familytool Create a new family linking father and/or mother by their handles
Create a new family linking father and/or mother by their handles
create_mediatool \
\ Create a media record from a file already on the Gramps server (provide path), \ by downloading from a URL (provide url), or by uploading bytes from the MCP client \ itself (provide data_base64 — the only option for a file that only exists in the \ client's own workspace).
create_notetool Create a text note
Create a text note
create_persontool Create a new person. Provide first_name and/or surname. Gender values: 0=female, 1=male, 2=unknown, 3=other.
Create a new person. Provide first_name and/or surname. Gender values: 0=female, 1=male, 2=unknown, 3=other.
create_placetool Create a new place record
Create a new place record
create_repositorytool Create a new repository record
Create a new repository record
create_sourcetool Create a new source record
Create a new source record
create_tagtool Create a new tag with a name, optional color (hex) and priority
Create a new tag with a name, optional color (hex) and priority
delete_objecttool \
\ Delete an object by handle. `object_type` is required, as a quoted string: \ "person", "family", "event", "place", "note", "citation", "source", "media", "repository", or "tag".
get_event_spantool Get the time span between two events (e.g. birth and death)
Get the time span between two events (e.g. birth and death)
get_family_timelinetool Get chronological event timeline for a family
Get chronological event timeline for a family
get_filter_rulestool \
\ Get the live catalog of native Gramps filter rules for one object type — name, \ description, and parameter types for every rule usable in list_objects's `rules` field \ (including `MatchesQuery`, a GOQL expression). Call this when get_rules_reference's \ MatchesQuery/GOQL isn't expressive enough and you need a rule from Gramps' own catalog \ (e.g. date-range or relationship rules). `object_type` is required, as a quoted string: \ "person", "family", "event", "place", "note", "citation", "source", "media", \ or "repository" (not "tag" — it has no rule catalog upstream).
get_goql_referencetool Get the GOQL (Gramps Object Query Language) reference: syntax, \
Get the GOQL (Gramps Object Query Language) reference: syntax, \ operators, column paths, and the full query_object body (select/order_by/limit/after/count). \ Call this before writing a where_expr.
get_media_filetool \
\ Read back the binary content of a media object, size-limited, with MD5 and SHA-256 \ for verifying it against a local original. Private media is refused unless \ allow_private is explicitly set.
get_objecttool \
\ Get one already-identified genealogy object, by `handle` or `gramps_id` (exactly one \ required; `gramps_id` isn't supported for "tag" — tags have no Gramps ID, use `handle`). \ `object_type` is always required, as a quoted string: "person", "family", "event", \ "place", "note", "citation", "source", "media", "repository", or "tag". \ To find objects you don't already have a handle/gramps_id for, use `search`, `list_objects`, \ or `query_object` instead.
get_person_timelinetool Get chronological event timeline for a person
Get chronological event timeline for a person
get_relationstool Get the most direct relationship path between two people
Get the most direct relationship path between two people
get_rules_referencetool Get the native Gramps filter rule reference for list_objects's \
Get the native Gramps filter rule reference for list_objects's \
`rules` field: the generic {function, invert, rules} shape, the recommended `MatchesQuery` \
(GOQL) rule, and how to discover the full rule catalog via get_filter_rules. \
Call this before writing a `rules` filter.get_tree_infotool Get tree-level statistics and metadata
Get tree-level statistics and metadata
list_objectstool \
\ Browse or filter a collection of genealogy objects using native Gramps `rules` (e.g. \ relationship, ancestor/descendant, or tag-based rules — call get_rules_reference for \ syntax), or just page through all objects of a type when `rules` is omitted. \ `object_type` is always required, as a quoted string: "person", "family", "event", \ "place", "note", "citation", "source", "media", "repository", or "tag". \ Use `page`/`pagesize` to paginate (default page=1, pagesize=20).
merge_citationtool Merge two citations: survivor_handle is kept, duplicate_handle is deleted
Merge two citations: survivor_handle is kept, duplicate_handle is deleted
merge_eventtool Merge two events: survivor_handle is kept, duplicate_handle is deleted
Merge two events: survivor_handle is kept, duplicate_handle is deleted
merge_familytool \
\ Merge two families: survivor_handle is kept, duplicate_handle is deleted. \ Optionally specify which father/mother handle to keep.
merge_mediatool Merge two media objects: survivor_handle is kept, duplicate_handle is deleted
Merge two media objects: survivor_handle is kept, duplicate_handle is deleted
merge_notetool Merge two notes: survivor_handle is kept, duplicate_handle is deleted
Merge two notes: survivor_handle is kept, duplicate_handle is deleted
merge_persontool \
\ Merge two people: survivor_handle is kept, duplicate_handle is deleted. \ Set family_merger=true (default) to also merge their families.
merge_placetool Merge two places: survivor_handle is kept, duplicate_handle is deleted
Merge two places: survivor_handle is kept, duplicate_handle is deleted
merge_repositorytool Merge two repositories: survivor_handle is kept, duplicate_handle is deleted
Merge two repositories: survivor_handle is kept, duplicate_handle is deleted
merge_sourcetool Merge two sources: survivor_handle is kept, duplicate_handle is deleted
Merge two sources: survivor_handle is kept, duplicate_handle is deleted
query_objecttool \
\
Fast structured query — filter/sort/page a collection of one object type via a SQL-compiled \
backend (POST .../query/). `where_expr` is the same GOQL language as list_objects's \
`rules: {"name": "MatchesQuery", ...}`, but this tool also gives you `select` (pick \
columns), `order_by`, and efficient `after`-cursor pagination (from the previous response's \
`next_after`) instead of page/pagesize. `object_type` is required, as a quoted string: \
"person", "family", "event", "place", "note", "citation", "source", "media", \
"repository", or "tag". Call get_goql_reference for `where_expr` syntax; fall back to \
list_objects + `rules` when you need to combine multiple native Gramps rules.replace_media_filetool \
\ Replace the binary file of an existing Media object in place, preserving its handle, \ ID, privacy, description and all references to it. The declared mime (if any) is \ cross-checked against the file's actual content.
searchtool \
\ Find genealogy records by name or keyword — this is the tool to use for \ "find a person", "look up a family", "search for a place", etc. \ Full-text search across the whole database. \ Set `object_type` to narrow results to a specific type (a quoted string, e.g. "person"), \ or omit to search across all types. \ Use `page`/`pagesize` to paginate large result sets (default page=1, pagesize=20).
update_citationtool Update an existing citation: data is a JSON Merge Patch, RFC 7396 — pass \
Update an existing citation: data is a JSON Merge Patch, RFC 7396 — pass \ only changed fields (see server instructions).
update_eventtool Update an existing event: data is a JSON Merge Patch, RFC 7396 — pass only \
Update an existing event: data is a JSON Merge Patch, RFC 7396 — pass only \ changed fields (see server instructions).
update_familytool Update an existing family: data is a JSON Merge Patch, RFC 7396 — pass only \
Update an existing family: data is a JSON Merge Patch, RFC 7396 — pass only \ changed fields (see server instructions).
update_mediatool Update an existing media object's metadata: data is a JSON Merge Patch, RFC \
Update an existing media object's metadata: data is a JSON Merge Patch, RFC \ 7396 — pass only changed fields (see server instructions). To replace the \ underlying file itself, use replace_media_file instead.
update_notetool Update an existing note: data is a JSON Merge Patch, RFC 7396 — pass only \
Update an existing note: data is a JSON Merge Patch, RFC 7396 — pass only \ changed fields (see server instructions).
update_persontool Update an existing person: data is a JSON Merge Patch, RFC 7396 — pass only \
Update an existing person: data is a JSON Merge Patch, RFC 7396 — pass only \ changed fields (see server instructions).
update_placetool Update an existing place: data is a JSON Merge Patch, RFC 7396 — pass only \
Update an existing place: data is a JSON Merge Patch, RFC 7396 — pass only \ changed fields (see server instructions).
update_repositorytool Update an existing repository: data is a JSON Merge Patch, RFC 7396 — pass \
Update an existing repository: data is a JSON Merge Patch, RFC 7396 — pass \ only changed fields (see server instructions).
update_sourcetool Update an existing source: data is a JSON Merge Patch, RFC 7396 — pass only \
Update an existing source: data is a JSON Merge Patch, RFC 7396 — pass only \ changed fields (see server instructions).
update_tagtool Update an existing tag: data is a JSON Merge Patch, RFC 7396 — pass only \
Update an existing tag: data is a JSON Merge Patch, RFC 7396 — pass only \ changed fields (see server instructions).
Text the model reads (44)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
search tool
\\ Find genealogy records by name or keyword — this is the tool to use for \\ "find a person", "look up a family", "search for a place", etc. \\ Full-text search across the whole database. \\ Set `object_type` to narrow results to a specific type (a quoted string, e.g. "person"), \\ or omit to search across all types. \\ Use `page`/`pagesize` to paginate large result sets (default page=1, pagesize=20).
get_rules_reference tool
Get the native Gramps filter rule reference for list_objects's \\
`rules` field: the generic {function, invert, rules} shape, the recommended `MatchesQuery` \\
(GOQL) rule, and how to discover the full rule catalog via get_filter_rules. \\
Call this before writing a `rules` filter.get_filter_rules tool
\\ Get the live catalog of native Gramps filter rules for one object type — name, \\ description, and parameter types for every rule usable in list_objects's `rules` field \\ (including `MatchesQuery`, a GOQL expression). Call this when get_rules_reference's \\ MatchesQuery/GOQL isn't expressive enough and you need a rule from Gramps' own catalog \\ (e.g. date-range or relationship rules). `object_type` is required, as a quoted string: \\ "person", "family", "event", "place", "note", "citation", "source", "media", \\ or "repository" (not "tag" — it has no rule catalog upstream).
get_object tool
\\ Get one already-identified genealogy object, by `handle` or `gramps_id` (exactly one \\ required; `gramps_id` isn't supported for "tag" — tags have no Gramps ID, use `handle`). \\ `object_type` is always required, as a quoted string: "person", "family", "event", \\ "place", "note", "citation", "source", "media", "repository", or "tag". \\ To find objects you don't already have a handle/gramps_id for, use `search`, `list_objects`, \\ or `query_object` instead.
list_objects tool
\\ Browse or filter a collection of genealogy objects using native Gramps `rules` (e.g. \\ relationship, ancestor/descendant, or tag-based rules — call get_rules_reference for \\ syntax), or just page through all objects of a type when `rules` is omitted. \\ `object_type` is always required, as a quoted string: "person", "family", "event", \\ "place", "note", "citation", "source", "media", "repository", or "tag". \\ Use `page`/`pagesize` to paginate (default page=1, pagesize=20).
get_goql_reference tool
Get the GOQL (Gramps Object Query Language) reference: syntax, \\ operators, column paths, and the full query_object body (select/order_by/limit/after/count). \\ Call this before writing a where_expr.
query_object tool
\\
Fast structured query — filter/sort/page a collection of one object type via a SQL-compiled \\
backend (POST .../query/). `where_expr` is the same GOQL language as list_objects's \\
`rules: {"name": "MatchesQuery", ...}`, but this tool also gives you `select` (pick \\
columns), `order_by`, and efficient `after`-cursor pagination (from the previous response's \\
`next_after`) instead of page/pagesize. `object_type` is required, as a quoted string: \\
"person", "family", "event", "place", "note", "citation", "source", "media", \\
"repository", or "tag". Call get_goql_reference for `where_expr` syntax; fall back to \\
list_objects + `rules` when you need to combine multiple native Gramps rules.get_relations tool
Get the most direct relationship path between two people
get_person_timeline tool
Get chronological event timeline for a person
get_family_timeline tool
Get chronological event timeline for a family
get_event_span tool
Get the time span between two events (e.g. birth and death)
get_tree_info tool
Get tree-level statistics and metadata
create_person tool
Create a new person. Provide first_name and/or surname. Gender values: 0=female, 1=male, 2=unknown, 3=other.
create_family tool
Create a new family linking father and/or mother by their handles
create_event tool
Create a new event (birth, death, marriage, etc.)
create_place tool
Create a new place record
create_source tool
Create a new source record
create_tag tool
Create a new tag with a name, optional color (hex) and priority
create_citation tool
Create a new citation linking a source by handle
create_repository tool
Create a new repository record
create_note tool
Create a text note
create_media tool
\\ Create a media record from a file already on the Gramps server (provide path), \\ by downloading from a URL (provide url), or by uploading bytes from the MCP client \\ itself (provide data_base64 — the only option for a file that only exists in the \\ client's own workspace).
get_media_file tool
\\ Read back the binary content of a media object, size-limited, with MD5 and SHA-256 \\ for verifying it against a local original. Private media is refused unless \\ allow_private is explicitly set.
replace_media_file tool
\\ Replace the binary file of an existing Media object in place, preserving its handle, \\ ID, privacy, description and all references to it. The declared mime (if any) is \\ cross-checked against the file's actual content.
update_person tool
Update an existing person: data is a JSON Merge Patch, RFC 7396 — pass only \\ changed fields (see server instructions).
update_family tool
Update an existing family: data is a JSON Merge Patch, RFC 7396 — pass only \\ changed fields (see server instructions).
update_event tool
Update an existing event: data is a JSON Merge Patch, RFC 7396 — pass only \\ changed fields (see server instructions).
update_place tool
Update an existing place: data is a JSON Merge Patch, RFC 7396 — pass only \\ changed fields (see server instructions).
update_source tool
Update an existing source: data is a JSON Merge Patch, RFC 7396 — pass only \\ changed fields (see server instructions).
update_citation tool
Update an existing citation: data is a JSON Merge Patch, RFC 7396 — pass \\ only changed fields (see server instructions).
update_repository tool
Update an existing repository: data is a JSON Merge Patch, RFC 7396 — pass \\ only changed fields (see server instructions).
update_note tool
Update an existing note: data is a JSON Merge Patch, RFC 7396 — pass only \\ changed fields (see server instructions).
update_tag tool
Update an existing tag: data is a JSON Merge Patch, RFC 7396 — pass only \\ changed fields (see server instructions).
update_media tool
Update an existing media object's metadata: data is a JSON Merge Patch, RFC \\ 7396 — pass only changed fields (see server instructions). To replace the \\ underlying file itself, use replace_media_file instead.
delete_object tool
\\ Delete an object by handle. `object_type` is required, as a quoted string: \\ "person", "family", "event", "place", "note", "citation", "source", "media", "repository", or "tag".
merge_person tool
\\ Merge two people: survivor_handle is kept, duplicate_handle is deleted. \\ Set family_merger=true (default) to also merge their families.
merge_family tool
\\ Merge two families: survivor_handle is kept, duplicate_handle is deleted. \\ Optionally specify which father/mother handle to keep.
merge_citation tool
Merge two citations: survivor_handle is kept, duplicate_handle is deleted
merge_event tool
Merge two events: survivor_handle is kept, duplicate_handle is deleted
merge_media tool
Merge two media objects: survivor_handle is kept, duplicate_handle is deleted
merge_note tool
Merge two notes: survivor_handle is kept, duplicate_handle is deleted
merge_place tool
Merge two places: survivor_handle is kept, duplicate_handle is deleted
merge_repository tool
Merge two repositories: survivor_handle is kept, duplicate_handle is deleted
merge_source tool
Merge two sources: survivor_handle is kept, duplicate_handle is deleted
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 44 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 44 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 44 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 44 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 44 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 44 capabilities; 44 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 44 capabilities; 44 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 44 capabilities; 44 more call code the scanner could not follow, where it may happen
Where the code is: 44 handlers in 1 file at commit a12d0e31c9c9
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: Cargo.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies MEDIUM4 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionrmcp 3.9
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 44 capabilities; 44 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (4 in production)
astral-tokio-tarcrates.io 0.6.4 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0440`astral-tokio-tar` is unmaintained
chronocrates.io 0.4.45 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0543chrono is unmaintained
unsafe-libyamlcrates.io 0.2.11 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2024-0449unsafe-libyaml is unmaintained
urlcrates.io 2.5.8 MEDIUM 1 advisory 2.5.9
- MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | rmcp 3.9 |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-11 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | Apache-2.0 |
| Created | 2026-06-16 |
| Topics | genealogy gramps gramps-web mcp model-context-protocol rust |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.