Skip to content

MCP Integration

Axiom Wiki exposes all its tools as an MCP server for use with Claude Code, Cursor, or any MCP-compatible client.

Step 1. Add to your Claude Code MCP config (.claude/mcp_settings.json):

{
"axiom-wiki": {
"command": "axiom-wiki",
"args": ["mcp"],
"env": {}
}
}

Or with pnpm dlx (no global install required):

{
"axiom-wiki": {
"command": "pnpm",
"args": ["dlx", "axiom-wiki", "mcp"],
"env": {}
}
}

Step 2. Restart Claude Code.

ToolDescription
read_pageRead any wiki page
write_pageCreate or update a page
search_wikiFull-text search across all pages
list_pagesBrowse the wiki catalog
ingest_sourceProcess a raw file into the wiki
get_statusWiki statistics
lint_wikiHealth check data
update_indexRebuild the wiki index
update_mocRebuild the tag-grouped Map of Content
append_logAdd a log entry
list_sourcesAll ingested sources with dates
get_sourceRead a source’s wiki summary
remove_sourceRemove a source summary page
get_contradictionsFind all unresolved contradictions
resolve_contradictionApply a resolution
analyze_graphFind orphan pages and dead links

These tools keep the wiki current as code changes:

ToolDescription
notify_code_changeReport code changes to trigger wiki updates (Tier 1 + optional Tier 2)
report_task_completeLog task completion and get staleness report
log_decisionRecord architectural decisions and rationale

These tools help agents plan changes using wiki knowledge:

ToolDescription
get_architecture_briefSingle-call project overview with staleness info
plan_with_wikiSearch wiki for context relevant to a task
get_context_for_changeGet wiki pages covering specific files
check_before_commitPre-commit staleness check
get_wiki_healthWiki health status: staleness scores, sync info, recommendations

Format options: The planning tools (get_architecture_brief, plan_with_wiki, get_context_for_change) accept an optional format parameter:

  • "full" (default) — Complete markdown content
  • "compact" — Frontmatter + first paragraph + cross-references (~80% token reduction)
  • "summary" — Title + summary + tags only (~95% token reduction)

They also accept maxTokens to set a token budget — content is automatically truncated to fit.

MCP resources provide ambient context that agents can pin without explicit tool calls:

Resource URIDescription
axiom://overviewProject architecture overview (pin this for always-on context)
axiom://indexFull page index with summaries and staleness markers
axiom://recent-changesLast 10 wiki log entries

To configure your agent to call these tools automatically, see the Agent Setup guide.