Skip to content
MCP server

open-primeagent

MCP server that writes what one coding agent learns into AGENTS.md for other agents

Runs locally

open-primeagent is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.1.7
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add open-primeagent -- uvx open-primeagent

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

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "open-primeagent": {
      "command": "uvx",
      "args": [
        "open-primeagent"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "open-primeagent": {
      "command": "uvx",
      "args": [
        "open-primeagent"
      ]
    }
  }
}

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "open-primeagent": {
      "command": "uvx",
      "args": [
        "open-primeagent"
      ]
    }
  }
}

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "open-primeagent": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "open-primeagent"
      ]
    }
  }
}

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add open-primeagent -- uvx open-primeagent

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.open-primeagent]
command = "uvx"
args = ["open-primeagent"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "open-primeagent": {
      "command": "uvx",
      "args": [
        "open-primeagent"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "open-primeagent": {
          "command": "uvx",
          "args": [
            "open-primeagent"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user open-primeagent uvx -- open-primeagent

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "open-primeagent": {
          "command": "uvx",
          "args": [
            "open-primeagent"
          ]
        }
      }
    }

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "open-primeagent": {
          "command": "uvx",
          "args": [
            "open-primeagent"
          ]
        }
      }
    }

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

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "open-primeagent": {
          "command": "uvx",
          "args": [
            "open-primeagent"
          ]
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "open-primeagent": {
          "command": "uvx",
          "args": [
            "open-primeagent"
          ]
        }
      }
    }

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "open-primeagent": {
          "command": "uvx",
          "args": [
            "open-primeagent"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "open-primeagent": {
          "command": "uvx",
          "args": [
            "open-primeagent"
          ]
        }
      }
    }

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "open-primeagent": {
          "command": "uvx",
          "args": [
            "open-primeagent"
          ]
        }
      }
    }

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About open-primeagent

Coding agents keep what they learn about a repository in their own private storage, so a teammate using a different agent starts from zero. This MCP server records those findings into a marked block inside the repo's AGENTS.md and CLAUDE.md files, so the knowledge is committed with the code and read by Claude Code, Codex and opencode.

The server runs over stdio and is added to whichever agent you use. Beyond the file projection it provides a persistent Python kernel that keeps variables between calls, and it can spawn and resume child agents running through your local claude or codex CLI. Only four MCP tools are exposed; the rest lives inside the kernel.

It suits developers who switch between coding agents on the same repository and want shared, version-controlled notes. The projection leaves everything outside its block untouched and can be removed cleanly. Because the kernel and child agents run with your OS permissions, the README advises running untrusted repositories inside a container or VM.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 4 tools reads data; 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

opa_python
Runs Python in a persistent kernel.
opa_statusName suggests: reads
Reports server status.
opa_kernel
Manages the Python kernel.
opa_bootstrap
Projects or removes the harness block in project files.

What it does

Shared repo knowledge
Writes learned rules into a delimited block in AGENTS.md and CLAUDE.md so other agents read them.
Clean removal
A single bootstrap call strips the managed block and restores the file contents outside it.
Persistent Python kernel
Keeps Python variables alive between calls, with truncated output and saved full text.
Cross-agent sub-agents
Spawns and resumes child agents through the local Claude Code or Codex CLI.
Four-tool surface
Exposes only four MCP tools, with other capabilities available as kernel symbols.

Good for

  • Hand a repository's hidden build or test rules from one coding agent to another
  • Keep a Codex sub-agent running and send it follow-up tasks from Claude Code
  • Store intermediate Python results across multiple agent turns without filling the context window
  • Install a shared project memory file that teammates pick up through version control

Pricing

Open source

Free and open source under Apache-2.0.

open-primeagent FAQ

How do I install open-primeagent in Claude Code?

Run claude mcp add opa -- uvx open-primeagent, or install it as a plugin from the softkleenex/open-primeagent marketplace.

Which agents can read the projected files?

The README says the projected AGENTS.md is read by Claude Code, Codex and opencode.

Can the projected block be removed?

Yes, calling opa_bootstrap with remove set to true removes the block and restores the file exactly.

What license does open-primeagent use?

It is licensed under Apache-2.0.

Is open-primeagent free?

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

How do I add open-primeagent to Claude Code?

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

What are the best alternatives to open-primeagent?

The closest alternatives to open-primeagent are MCPProxy, Agent MCP Hub, codemem, AGENTS.md Generator and Chorus.

Where this comes from

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

How AIPoweredBot checks servers