Autoctx
MCP server by greyhaven-ai Verified · npm:autoctx
Runs an evaluation harness that helps agents improve on a task over repeated runs. It keeps useful lessons, discards dead ends, and saves traces, reports and playbooks. Built for developers who run AI agents on evaluated tasks.
Install Autoctx
Built from the published package, never by AI.
claude mcp add autoctx -- npx -y autoctxRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"autoctx": {
"args": [
"-y",
"autoctx"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"autoctx": {
"args": [
"-y",
"autoctx"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"autoctx": {
"args": [
"-y",
"autoctx"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add autoctx -- npx -y autoctx{
"mcpServers": {
"autoctx": {
"args": [
"-y",
"autoctx"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add autoctx npx -y autoctxGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the autoctx block.
About
autocontext is a harness for agent improvement. You give it a goal, and it runs the task against an evaluation. It keeps the lessons that help, discards dead ends, and stores the results for the next run. Each run leaves filesystem-first artifacts, including trace.jsonl, per-generation scores, report.md, playbooks, hints and datasets. These can be inspected, diffed, replayed, exported or used for training.
The project ships as a Python CLI (autoctx) and an npm CLI. Its MCP server is started with autoctx serve mcp, so MCP clients such as Claude Code or Cursor can use it. The source describes it for developers and teams who want agents to get better on repeatable tasks. Some parts, such as the Qwen weight-space reproduction, are marked as experimental research.
Written from the project's README and checked against it.
What you need
- Node.js 22.19.0 or newer for the npm CLI
- Python with uv for the Python CLI
- An agent provider such as Pi, Anthropic, OpenAI-compatible endpoints or OpenRouter
- Docker for the opt-in executable-skill bridge
Try asking
- Run autoctx solve to improve billing dispute replies over 3 iterations
- Start an MCP server with autoctx serve mcp for my coding client
- Show me the report and playbook from my latest autocontext run
Good to know
- Parts of the Python weight-space research are experimental, and live reproduction is pending.
- GPU execution is deferred for several CPU experiment pipelines.
- Fixture-based benchmark runs are described as infrastructure evidence only.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Improve agent replies on a fixed task
- Evaluate and compare agent runs
- Expose agent evaluation tools to an MCP client
Alternatives to Autoctx
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
Autoctx: common questions
What does autocontext save after a run?
Each run writes a trace, per-generation strategy and score files, a report and artifacts. Knowledge folders hold a playbook, hints, tools and context bundles.
Which AI providers can it use?
The source names Pi, anthropic, openai-compatible, openrouter, claude-cli, codex and pi-rpc, plus self-hosted endpoints on vLLM, Ollama or any OpenAI-compatible server.
Is the MCP server a separate package?
The MCP server is started from the autoctx CLI with autoctx serve mcp or bunx autoctx serve mcp. The source does not list its individual tool names.
How do I install Autoctx?
In Claude Code run claude mcp add autoctx -- npx -y autoctx. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Autoctx the official server?
Autoctx is published by npm:autoctx from its verified domain in the official MCP Registry.
Is Autoctx free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Autoctx safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Autoctx?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does Autoctx work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
