# AnthroMesh

> AnthroMesh is an open-source MCP server for agent identity. Local preference memory and owner escalation for AI agents, with verifiable delegation. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/jamesafful/anthromesh
- **MCP Registry name:** io.github.jamesafful/anthromesh
- **Categories:** [agent identity](https://ai-powered.com/categories/agent-identity), [agent approvals](https://ai-powered.com/categories/agent-approvals), [agent memory](https://ai-powered.com/categories/agent-memory)
- **Listing updated:** 2026-11-28

## About

AnthroMesh keeps a local SQLite vault of a person's past decisions, each stored with context, the options considered, the choice made and the rationale. When an agent asks how the owner would decide, it returns an exact recorded preference only if two agreeing records from the past 90 days exist. Otherwise it escalates to the owner instead of guessing. In memory-only mode, set with ANTHROMESH_MEMORY_ONLY=1, experimental inference is bypassed entirely.

Responses carry a validity envelope that lists evidence IDs and states that no authority is granted. Owners review pending escalations from the CLI or a local browser inbox. Consent and boundary policies, audit-chain verification, subject export and erasure, and optional SQLCipher encryption are included.

Beyond MCP over stdio and Streamable HTTP, it can run as an A2A server and offers optional OAuth resource-server and capability-token access. It also provides signed delegation grants that a relying party checks against an exact proposed action. Inference adapters cover Ollama, vLLM, OpenAI, Anthropic, Gemini and an offline heuristic. The project documents its limits openly: predicting answers to genuinely new questions is unproven, and delegation controls have not had independent review.

## Features

- **Exact preference memory:** Returns a recorded choice only when two agreeing records from the last 90 days match the context and options.
- **Owner escalation:** Uncertain or unmatched queries become pending tickets that the owner resolves through the CLI or a local browser inbox.
- **Verifiable delegation:** Issues scoped speak or commit grants that a relying party verifies against a one-time challenge, the exact artifact and fresh revocation status.
- **Local-first vault:** Stores decisions in SQLite with optional SQLCipher encryption, audit-chain checks, and subject export and erasure.
- **MCP and A2A interfaces:** Serves MCP over stdio or HTTP and an A2A v1.0 server, with OAuth and capability-token options.
- **Validity envelopes:** Each response states its evidence, status and recommended use, and grants no authority by itself.
- **Pluggable inference adapters:** Supports Ollama, vLLM, OpenAI, Anthropic, Gemini and an offline heuristic adapter for research use.
- **Evaluation harness:** Includes benchmarks and study pipelines measuring calibration, escalation performance and accuracy against baselines.

## Good for

- Let a coding or scheduling agent check the owner's past choices before acting
- Route uncertain agent decisions to a human for approval
- Give an agent verifiable, revocable authority for one specific action
- Import GitHub review or calendar RSVP history as preference records
- Run reproducible studies of how well AI forecasts personal or survey answers
- Gate robot actions on recorded human preferences through a ROS 2 node

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add anthromesh -- uvx anthromesh
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add anthromesh -- uvx anthromesh
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.anthromesh]
command = "uvx"
args = ["anthromesh"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user anthromesh uvx -- anthromesh

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "anthromesh": {
      "command": "uvx",
      "args": [
        "anthromesh"
      ]
    }
  }
}
```

## FAQ

### How do I install AnthroMesh?

Install it from PyPI with python -m pip install anthromesh. Extras such as protocols, encryption, postgres, vector and survey add optional features.

### When does AnthroMesh return an answer instead of escalating?

In memory-only mode it answers only when two agreeing records from the past 90 days match the context and options. Otherwise the query is escalated to the owner.

### Which transports does AnthroMesh support?

MCP runs over stdio and Streamable HTTP. A2A v1.0 is served over HTTP with an agent card at /.well-known/agent-card.json.

### Can AnthroMesh predict answers to new questions?

Predictive fidelity is experimental. General transfer to genuinely new questions is unverified, and a follow-up validation missed its preregistered margin.

### Can data be deleted?

Yes. The erase-subject command deletes vault-managed records for a subject, prevents reimport and returns the previous and new audit checkpoints.

### Is AnthroMesh free?

Yes. AnthroMesh is open source, so you can use and self-host it for free.

### How do I add AnthroMesh to Claude Code?

Run this command in your terminal: claude mcp add anthromesh -- uvx anthromesh

### What are the best alternatives to AnthroMesh?

The closest alternatives to AnthroMesh are Memory v2 and Axiomseal.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Memory v2](https://ai-powered.com/mcp/memory-v2): Memory v2 is an open-source MCP server for knowledge and memory.
- [Axiomseal](https://ai-powered.com/mcp/axiomseal): Axiomseal is a freemium MCP server for agent memory.

---
Source: https://ai-powered.com/mcp/anthromesh
