pf2e-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PF2E_HOST | No | HTTP bind host. Default: 127.0.0.1 | 127.0.0.1 |
| PF2E_PORT | No | HTTP bind port. Default: 8000 | 8000 |
| PF2E_CACHE | No | Cache path, or 'off' to disable. Default: ~/.cache/pf2e-mcp/responses.sqlite3 | ~/.cache/pf2e-mcp/responses.sqlite3 |
| PF2E_TIMEOUT | No | HTTP timeout in seconds. Default: 30 | 30 |
| PF2E_AON_BASE | No | Base for relative URLs. Default: https://2e.aonprd.com | https://2e.aonprd.com |
| PF2E_CACHE_TTL | No | Cache lifetime in seconds. Default: 86400 | 86400 |
| PF2E_TRANSPORT | No | Transport mode: stdio or http. Default: stdio | stdio |
| PF2E_USER_AGENT | No | Identifying User-Agent. Default: pf2e-mcp/0.1.0 (...) | pf2e-mcp/0.1.0 (...) |
| PF2E_MAX_RETRIES | No | Attempts for 429/5xx and transport errors. Default: 3 | 3 |
| PF2E_AON_ENDPOINT | No | Search endpoint. Default: https://elasticsearch.aonprd.com/aon/_search | https://elasticsearch.aonprd.com/aon/_search |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Query Pathfinder 2e game data from Archives of Nethys (2e.aonprd.com).
search_content finds entries. Combine free text with filters: category, traits, level range, source book, rarity.
get_content reads one entry in full. Use a name (optionally with category), an AoN URL, or a stable document id such as "spell-119".
list_categories, list_sources, and list_traits discover valid filter values.
Results follow the Remaster: an entry the Remaster replaced is hidden in favour of its remastered version. Pass legacy=true to see the pre-remaster version. Content is read-only and fetched live; nothing is modified.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_contentA | Search Pathfinder 2e content. Returns a compact list with names, levels, traits, summaries, and Archives of Nethys URLs. Use get_content for full text. |
| get_contentA | Fetch one entry's full rules text by name, AoN URL, or document id. |
| get_creatureB | Fetch a creature or NPC statblock by name. |
| get_creature_statsA | Fetch a creature's numeric statblock as structured data: AC, HP, saves, perception, ability modifiers, skills, senses, languages, speed, weaknesses, resistances, items, and spells. Use get_creature for the full text. |
| list_categoriesA | List every content category with its entry count. Use these values for
the |
| list_sourcesA | List source books by entry count. Use a value in search_content's |
| list_traitsA | List traits by entry count. Use values in search_content's |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
get_creature is effectively a special case of get_content, and get_creature vs get_creature_stats target the same entity, so boundaries overlap. Descriptions do clarify the split (full text vs structured numeric data), but an agent must read carefully to pick correctly.
Clean verb_noun convention throughout: search_content, get_content, get_creature, get_creature_stats, list_categories, list_sources, list_traits. Verbs map predictably to operation type (search/get/list).
Seven tools is well-scoped for a read-only rules-reference server. Each tool has a clear role: retrieval, structured statblocks, and three facet-listing helpers for filters.
Coverage is strong for a lookup server: search, full text retrieval, structured creature stats, and discoverable filter facets. Minor gaps exist around bulk/browse operations (e.g. paging long result sets or level-range queries), but core reference workflows are covered.