Skip to content

MCP server

Anastro can act as a local MCP server so tools like Claude Code, Cursor, or other desktop clients can inspect projects, create threads, send messages, and drive machines. To give Anastro’s own threads access to external MCP servers instead, see Connectors.

Your MCP client runs anastroctl mcp serve, which speaks MCP over stdio and connects to your cluster over iroh as your enrolled device (sign in first with anastroctl login).

Terminal window
claude mcp add anastro -- anastroctl mcp serve

For clients configured via JSON:

{
"mcpServers": {
"anastro": { "command": "anastroctl", "args": ["mcp", "serve"] }
}
}

If you have multiple clusters in your client file, pick one with --context or ANASTRO_CONTEXT.

If you have the desktop app installed instead of anastroctl, point your MCP client at the app binary with mcp serve—it runs headless using the app’s enrolled device and last-selected cluster (or ANASTRO_CONTEXT):

Terminal window
# macOS
claude mcp add anastro -- /Applications/Anastro.app/Contents/MacOS/anastro mcp serve
{
"mcpServers": {
"anastro": {
"command": "/Applications/Anastro.app/Contents/MacOS/anastro",
"args": ["mcp", "serve"]
}
}
}

On Linux and Windows, use the path to your installed anastro executable. If the app isn’t signed into a cluster yet, the command prints why and exits.

  • Exposes Anastro’s project, thread, and machine operations (get_project, list_threads, create_thread, send_message, create_machine, and more).
  • Every call runs with your current roles and is recorded in the audit log as via mcp.
  • MCP calls are never trusted for sensitive actions (like approving devices or revealing secrets) and cannot mint tokens or keys.

Cloud-hosted MCP clients (like claude.ai or ChatGPT connectors) aren’t supported yet because Anastro has no public HTTPS API endpoint. See Known limitations.

  • Connectors: bring external MCP servers into Anastro threads.
  • The CLI: enroll a device and manage cluster contexts.