RoyalMapper for AI

Discover history.
Connect the generations.

Give AI assistants access to RoyalMapper's historical people, royal dynasties and family trees through our public genealogy API.

Model Context ProtocolCustom GPT ActionsRead-only · No API key
An illuminated historical genealogy manuscript with connected portraits
01 · Connect

Choose your integration

Use the OpenAPI schema for Custom GPT Actions, or access our existing JSON-RPC tool interface directly.

Custom GPT Actions

Connect to a Custom GPT

Import RoyalMapper's OpenAPI schema when configuring an Action in a Custom GPT. The schema exposes the public genealogy operations.

OpenAPI schema
https://royalmapper.com/.well-known/openapi.json
  1. Open your Custom GPT's configuration and add an Action.
  2. Import the schema URL above and select no authentication.
  3. Test the person search or family tree operation.
View OpenAPI schema →
MCP · JSON-RPC

Use the MCP tool interface

RoyalMapper's existing MCP interface supports initialization, tool discovery and tool calls over JSON-RPC HTTP POST requests.

JSON-RPC endpoint (POST)
https://royalmapper.com/api/mcp

The existing interface reports MCP protocol version 2024-11-05. Compatibility with newer Streamable HTTP clients is not guaranteed. The endpoint expects JSON-RPC requests, not an ordinary web page visit.

See JSON-RPC examples →
02 · Discover

From a name to a family tree

Explore people and their relationships, then open the interactive tree on RoyalMapper.

Antique portrait, historical records and a magnifying glass inspecting family relationships
Person discovery

Meet the people behind history

Search for a historical figure by name, retrieve their details using the returned person ID and request results in a supported language.

“Find Queen Victoria in RoyalMapper.”
Illustrated multigenerational family tree of interconnected historical portrait medallions
Family relationships

Follow the branches

Explore ancestors and descendants of a selected person, and get a direct link to their interactive family tree.

“Show me Queen Victoria's family tree and link to it.”

Illustrations are artistic representations, not historical evidence.

03 · Reference

Available MCP tools

Use search to find a person before requesting their details or tree. Replace <person-id> with the actual GID or external ID.

search

Find historical people by their full or partial name.

{"term":"Queen Victoria","lang":"en"}

get_person

Retrieve information about a person using a GID or external ID returned by search.

{"id":"<person-id>","lang":"en"}

get_family_tree

Retrieve family relationships, ancestors and descendants of the selected person.

{"PrimaryPersonId":"<person-id>","lang":"en"}

get_family_tree_url

Get a link to the interactive family tree on RoyalMapper.

{"id":"<person-id>","lang":"en"}

get_supported_languages

List the available language codes for localized API results.

{}
04 · Developer reference

JSON-RPC request examples

Send each of these request bodies separately to https://royalmapper.com/api/mcp using HTTP POST with Content-Type: application/json.

1. Initialize

{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"RoyalMapper guide","version":"1.0"}}}

2. List tools

{"jsonrpc":"2.0","id":2,"method":"tools/list"}

3. Search for a person

{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"search","arguments":{"term":"Queen Victoria","lang":"en"}}}

MCP and Custom GPT Actions use the same rate-limit policy as RoyalMapper's public read APIs. If a request returns HTTP 429, wait before retrying.

Genealogical data may be incomplete and available details vary by person and language. Use RoyalMapper's returned family tree links for context and verification.