Skip to content

Connect an MCP client

analects mcp serves four tools over the Model Context Protocol — read, check, write and review — each taking an op (read op=brief, write op=claim, …). They are the CLI's commands with the same arguments; the MCP reference lists every op.

Claude Code

claude mcp add analects -- analects mcp

To point it at one project's graph, set where the graph and config live:

claude mcp add analects -e ANALECTS_DB=/path/to/project/graph.db -- analects mcp

In a clone of this repository, the checked-in .mcp.json does this for you. In Claude Code an agent can also use the CLI directly; the skill teaches both.

Claude Desktop

Add Analects to claude_desktop_config.json (Settings → Developer → Edit config):

{
  "mcpServers": {
    "analects": {
      "command": "analects",
      "args": ["mcp"],
      "env": {
        "ANALECTS_DB": "/path/to/research/graph.db",
        "ANALECTS_CONFIG": "/path/to/home/.analects/analects.yaml"
      }
    }
  }
}

If analects is not on the PATH Desktop sees, give its full path (which analects), or use "command": "uvx", "args": ["--from", "git+https://github.com/KindTechUK/analects", "analects", "mcp"].

claude.ai, and people who do not run Analects themselves

claude.ai connects to a remote MCP server, so it needs a hosted peer: analects serve on a host, with sign-in through GitHub. Add <peer url>/mcp as a custom connector; each person signs in, and their work is staged as them.

Any other MCP client

analects mcp is a standard stdio MCP server: command analects, argument mcp, and the same ANALECTS_DB / ANALECTS_CONFIG / ANALECTS_PACKS environment. A hosted peer speaks streamable HTTP at <url>/mcp.

Acting as someone

Every tool takes who: a handle, or handle/agent. Work an agent stages through MCP lands in its own changeset, like ANALECTS_AS on the CLI. On a hosted peer the handle is whoever signed in, and who may only name their agent.