MCP Integration

Connect external AI agents like Claude Code to Mioru via the Model Context Protocol.

What is MCP?

The Model Context Protocol (MCP) lets external AI tools read, write, and manage your Mioru notes without opening the Mioru UI. Claude Code, Codex, and other MCP-compatible agents can work directly with your vault.

Available Tools (15)

Read & Navigation

ToolFunction
mira_list_projectsList all projects in your vault
mira_list_notesList all notes in a project
mira_read_noteRead a note's full content
mira_read_homeRead your Home Note
mira_read_projectRead a project's .project.md knowledge file
mira_searchSearch across your vault

Write & Modify

ToolFunction
mira_write_noteCreate or overwrite a note
mira_write_homeUpdate your Home Note
mira_append_noteAppend text to an existing note
mira_update_projectUpdate a .project.md file

Manage

ToolFunction
mira_create_projectCreate a new project/folder (with .project.md initialization)
mira_move_noteMove or rename a note (across projects)
mira_delete_noteDelete a note permanently

Security

All MCP tools respect the safePath guard — no access outside your configured Notes Directory is possible. The MCP server reports its version for compatibility checks.

Setup

Claude Code

claude mcp add -s user mira

Mioru uses the claude mcp add command as the primary setup path, with direct ~/.claude.json write as fallback.

Claude Desktop

Mioru automatically configures Claude Desktop's MCP settings. On Windows, it handles both MSIX (UWP) and Win32 installation paths.

Other MCP Clients

Any MCP-compatible client can connect to Mira's MCP server. Configure it as a stdio transport pointing to ~/.config/mira/mira-mcp.js.