Skip to content

MCP Server Integration

Archcore includes a built-in MCP server that exposes your .archcore/ documents to AI agents via the Model Context Protocol (stdio transport).

The MCP server runs as a subprocess launched by your coding agent. When the agent starts, it spawns archcore mcp and communicates with it over stdin/stdout using JSON-RPC 2.0.

The server provides 8 tools that agents can call to interact with your documents. See MCP Tools Reference for the complete API.

Terminal window
archcore init

archcore init auto-detects installed agents and configures MCP for each one. It writes the appropriate config file so the agent knows to launch archcore mcp on startup.

Terminal window
archcore mcp install

Or for a specific agent:

Terminal window
archcore mcp install --agent claude-code

If you need to configure MCP manually, add to your agent’s MCP config:

{
"mcpServers": {
"archcore": {
"command": "archcore",
"args": ["mcp"]
}
}
}

Config file locations vary by agent — see Supported Agents for details.

Once MCP is configured, agents can:

ActionToolDescription
Browselist_documentsList documents filtered by type, layer, or status
Readget_documentGet full document content with relations
Createcreate_documentCreate new documents from templates
Updateupdate_documentModify title, status, or content
Deleteremove_documentRemove a document permanently
Linkadd_relationCreate a relation between two documents
Unlinkremove_relationRemove a relation
Browse linkslist_relationsView all relations or filter by document

The MCP server embeds detailed instructions that teach agents:

  • Which document type to use for each situation
  • How to follow naming conventions
  • When to create vs. update documents
  • How to use relations properly
  • Document status lifecycle (draft → accepted → rejected)

These instructions are sent automatically when the agent connects — no manual setup needed.

If you set a language in your config:

Terminal window
archcore config set language ru

The MCP server instructions will include a directive for the agent to write document content in that language.