
Archivist AI
io.github.Astrotomic由 GitHub 账号 Astrotomic 发布v3.0.1更新于 Oct 24, 2026
Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
概览
Archivist AI 官方远程 MCP 服务器,让助手读取和编辑跑团战役记录,如角色、场次、任务与日志。
- 可以做什么
- 列出、读取、创建、更新和删除战役、场次、节拍、关键时刻、英雄奖、语录与聚光
- 管理世界观条目:角色、派系、地点与物品,文本字段支持 wikilink
- 管理任务、日志条目与日志文件夹
- 查看并维护实体之间的链接,包括全战役范围的链接维护
- 查询图片配额、发起并完成直传图片、删除实体图片
- 读取场次转录、讲义与出场分析
- 适用场景
- 适合在 Archivist AI 中记录战役的主持人和玩家,希望助手在对话中总结场次、起草 NPC 或地点、跟踪任务并维护交叉引用。
- 运行要求
- 通过 streamable HTTP 连接 mcp.myarchivist.ai 远程端点。必须认证:OAuth 登录,或在 X-API-Key 请求头中提供 Archivist AI API 密钥。Claude Desktop 需要 mcp-remote 代理和 Node.js。写入工具需要 agent_write OAuth 权限范围。部分功能需要 Archivist AI 账号及订阅等级。
安装
在 SourceWeft 中
- 打开 控制台中的 Archivist AI,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.Astrotomic%2Farchivist-ai/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"archivist-ai": {
"type": "http",
"url": "https://mcp.myarchivist.ai/mcp"
}
}
}README
Archivist AI MCP Server
[MIT License] [Treeware] [Larabelles]
[GitHub PHPunit Status] [GitHub PHPStan Status] [GitHub Pint Status] [GitHub PHPMND Status]
[Discord] [Smithery] [Glama] [mcp.so]
The official Model Context Protocol (MCP) server for Archivist AI -- a TTRPG campaign memory platform for game masters and players.
Registry metadata lives in server.json. Publishing to the official MCP Registry is automated on version tags via .github/workflows/publish-mcp.yml (git tag v3.0.1 && git push origin v3.0.1).
Connect AI assistants like Claude, ChatGPT, Cursor, Notion, and Windsurf directly to your campaign data: characters, sessions, locations, factions, items, quests, journals, key moments, hero awards, quotes, spotlights, and more.
Quick Start
MCP Server URL: https://mcp.myarchivist.ai/mcp
Discord tools live on a sibling host: https://discord.myarchivist.ai/mcp. That is a separate MCP resource (OAuth + your recording bot) and does not replace campaign tools here.
Claude Desktop
Claude Desktop requires the mcp-remote proxy (Node.js must be installed).
Add to your claude_desktop_config.json (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
Replace YOUR_API_KEY with your Archivist AI API key from app.myarchivist.ai. Restart Claude Desktop after saving.
API keys must be sent in the X-API-Key header. Do not put an API key in an
Authorization: Bearer header; Bearer credentials are reserved for OAuth access
tokens.
OpenCode
OAuth (recommended):
To use an API key instead, disable OAuth auto-detection and send the key in
X-API-Key:
Cursor
Add to .cursor/mcp.json in your project:
Windsurf
Add to your MCP configuration:
ChatGPT
Archivist AI is available as a ChatGPT plugin. Search for "Archivist AI" in the ChatGPT plugin store.
Example Prompts
- "List my campaigns, then summarize the most recent session of my Curse of Strahd campaign."
- "Create a new NPC named Captain Mirelle Voss, a smuggler who works for the Silver Hand faction, and link her to the Port of Dusk location."
- "Add a quest called 'Recover the Moonstone' to my campaign, then list all open quests and the characters involved."
Available Tools
Read tools are non-destructive and idempotent. Write tools follow standard REST semantics — deletes are destructive and idempotent; PATCH is non-idempotent; PUT is idempotent. Every read tool that returns text-carrying descriptions (Character, Faction, Location, Item, Moment, Beat, Session, Journal) accepts an optional with_links parameter — see Wikilinks below for why you almost always want to pass with_links: true before editing.
Campaign delete, session delete, product-view-only endpoints (beat reorder/batch-edit, campaign settings, cast/member management), multipart recording uploads, and AI image generation are intentionally not exposed.
OAuth scopes and write access
OAuth clients that connect via https://app.myarchivist.ai request scopes at authorization time. Every write tool (create/update/delete + image upload) additionally requires the agent_write scope on the caller's token.
The MCP mirrors the API's enforcement in tools/list: agent clients without agent_write see only the read tools, and receive a "tool not found" JSON-RPC error if they attempt to call a write tool anyway. API-key credentials and non-agent OAuth clients bypass this filter — the API is the authoritative gate for them and all tools remain visible.
Existing OAuth clients that connected before agent_write was advertised need to re-authorize to receive a token with the new scope.
Campaigns
Sessions
Story Structure
Highlights
World Building
Quests
Journals
Relationships
Images
Wikilinks
Descriptions, summaries, moment content, and journal bodies in Archivist AI can contain [[Target Name|Optional Alias]] markup that resolves to real records. Every write tool that touches a text field carrying wikilinks has to follow a small protocol to avoid destroying existing links.
The one rule you must follow
Always read with with_links: true before writing. Every Get/List tool for Character, Faction, Location, Item, Moment, Beat, Session, and Journal accepts this parameter. The API defaults to stripping wikilinks so that read consumers get clean prose, which means a naive read/modify/write cycle will erase every [[…]] on the source record. Passing with_links: true returns the text with brackets intact so you can preserve them on write.
Per-record contract
Renaming and repointing
- Rename an alias: edit inside the brackets.
[[Alice|Al]]→[[Alice|Ali]]. - Repoint at a different target: change the visible target name.
[[Alice]]→[[Alicia]]. - Remove a link: unbracket the alias in the text (auto-resolve) or call
delete_link(explicit). - Campaign-wide rename or repoint for a compendium target: use
bulk_link_maintenancewithoperation: "update",new_alias, and/ornew_target_id. The API rewrites every referring text field in a background webhook and returns atask_id.
Images
Entity images can be added to Characters, Factions, Locations, Items, Moments, Sessions, and the Campaign itself via direct upload. The MCP server does not expose an AI image generation tool — image generation remains a product feature in the Archivist AI app and a REST endpoint on the API.
Direct upload (two-step)
For images the user already has on disk or in memory, use the presigned-URL flow:
- Call
init_image_uploadwithcampaign_id,entity_type,entity_id,file_name, andcontent_type(must beimage/*). You receiveobject_key,upload_url,public_url, andexpires_in_seconds. - Your client (or a human collaborator) issues an HTTP
PUTtoupload_urlwith the raw image bytes and the sameContent-Typeheader before the URL expires. This step happens outside the MCP transport. - Call
complete_image_uploadwithobject_key,entity_type,entity_id, andattach(defaults totrue). The API validates the upload, runs NSFW moderation, and — whenattachis true — sets the entity'simagefield to the moderatedpublic_url.
Agents that cannot make arbitrary HTTP PUTs should hand the PUT step off to a human between step 1 and step 3.
Removal
delete_entity_image removes an image within a campaign in one of two modes:
- By entity: pass
entity_type+entity_id. The API detaches the image from the record AND deletes the underlying object. - By URL: pass a managed
image_url(e.g. from a previousinit_image_uploadresponse). Deletes just the object.
Troubleshooting
- Authentication fails or tools return 401: reconnect the server and complete the OAuth sign-in again, or check that your API key is current in app.myarchivist.ai.
- Write tools are missing (agent OAuth clients only): write tools are hidden from agent OAuth clients that lack the
agent_writescope. Reconnect and approve write access. API keys and non-agent OAuth clients always see all tools; see OAuth scopes and write access. - Claude Desktop does not connect: it needs the
mcp-remoteproxy and Node.js; restart Claude Desktop after editing its config. - Wikilinks disappear after an edit: read the record with
with_links: truebefore updating it. See Wikilinks.
Privacy and Support
- Privacy policy: https://www.myarchivist.ai/privacy
- Support and security contact: [email protected]
- Community: Discord
来源:README.md,提交 31e2c4f
工具
0版本历史
2- v3.0.1最新Oct 24, 2026
- v1.0.0Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分