Skip to content
MCP server
Registry

MCP Plan Runner MCP Server

Run a whole plan of tool calls across any MCP servers in one call.

MCP Plan Runner scores 67 (Good), licensed MIT and written in Python. It installs as a local process. It declares 1 tool. Filed under AI and memory. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by costas1379MITPython1 stars
Trust score
67Good
Trust score 67 of 100, Good

Good trust

67 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 67 comes from

22 + 20 + 1 + 10 + 4 + 10 = 67. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "costas1379-mcp-plan-runner": {      "command": "uvx",      "args": [        "mcp-plan-runner"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools1Tool docs quality grade B

All capabilities
  • one tool call for each item of a list, optionally in parallel. Gives a list.

About

mcp-plan-runner

costas1379/mcp-plan-runner MCP server

An MCP proxy that lets a model run a whole plan of tool calls in one call.

A normal agent calls one tool, reads the result, decides, and calls the next tool. Each step costs a model turn, and every intermediate result goes into the context. With run_plan, the model writes the full plan once: calls, loops and conditions. The runner executes it next to the tools and returns only the final value.

It works with any MCP server. The servers need no changes.

Results

On a mail job with about 30 tool calls (read 27 threads in two mailboxes, then build one table), Claude Code with the plan runner needed 3 turns instead of 31 and cost 84% less (median 0.105 USD instead of 0.649), with the same answer totals. A rerun on the final code cost about the same (median 0.111 USD), but took 5 turns: Gmail's per-minute quota rejected some reads, and the model read them again in a second plan. On small jobs the saving is smaller. Details and all rounds: docs/benchmarks.md.

Try it on Glama

The Glama listing shows the server's tools and its quality score, and you can test it online with the MCP Inspector before you install it.

Quick start

You need uv. uvx downloads and runs the package from PyPI.

  1. Write a config file, for example ~/.config/mcp-plan-runner/config.json, with your servers (see Configuration and config.example.json).
  2. Add the runner to an MCP client, for example Claude Code:
claude mcp add plan-runner -- uvx mcp-plan-runner /abs/path/to/config.json

Other clients: the command is uvx and the arguments are mcp-plan-runner /abs/path/to/config.json. The runner talks MCP over stdio. pipx run mcp-plan-runner config.json works too.

From source:

git clone https://github.com/costas1379/mcp-plan-runner
cd mcp-plan-runner
uv sync
cp config.example.json config.json   # edit: your servers and allow list
uv run mcp-plan-runner config.json   # runs the proxy on stdio

Configuration

{
  "servers": {
    "mail": {"command": "uv", "args": ["run", "mail-mcp"], "env": {"TOKEN_FILE": "/path"},
             "cwd": "/path", "max_parallel": 1, "log": "/path/logs/mail.log"},
    "docs": {"url": "https://example.com/mcp"}
  },
  "allow_in_plans": ["mail.search", "mail.get_thread"],
  "schema_cache": true
}
KeyMeaning
servers.<name>A stdio server (command, args, env, cwd) or an HTTP server (url). The name may not contain ..
max_parallelCalls in flight to this server (default 4). Use 1 for servers that cannot handle parallel calls.
logStdio only: append the server's stderr to this file (mode 0600). A relative path starts from the folder the proxy runs in.
allow_in_plansTools (exact names or fnmatch patterns) that may run in a plan although they are not marked read-only.
schema_cachetrue (default): learn output schemas, see Learned output schemas. A file path: keep them in that file. false: do not learn.

Tools

ToolPurpose
list_tools(query, server)Find tools. With a query, it returns the best matches (at most 15) with input and output schemas. Without a query and with more than 60 tools, it returns only the names, grouped by server.
call(tool, args)Call one tool and return its result as JSON. Use it to see an output shape.
run_plan(plan)Validate and run a plan. Returns ok, result, calls and a short trace.

Tool names are server.tool, for example mail.search.

The client sees only these three tools, however many tools the servers behind the proxy have. The model finds the tools it needs with list_tools and a query, so the schemas of hundreds of tools never go into its context. Above 60 tools, a list without a query gives only the names.

Learned output schemas

A model writes a plan in one go only when it knows the shape of each tool's result. Many MCP servers do not declare an outputSchema, so the model must first make a probe call to see the shape. To avoid that probe on later runs, the runner learns the shape:

  • Each time a tool without an output schema returns a result (from call or inside a plan), the runner reads the JSON types and keys of the result and adds them to what it saw before.
  • A key becomes a field name only after it was in 3 different results. A result that is the same as a recent one does not count again. Real field names (id, subject, next_page_token) repeat in every result. Most data used as keys (names, ids) does not, so it is not stored.
  • list_tools with a query shows the learned schema as output_schema, with "output_schema_learned": true. Any field in it may be missing in a result. A schema that the server declares always wins.
  • The schemas are kept in ~/.cache/mcp-plan-runner/schemas.json (or under $XDG_CACHE_HOME), file mode 0600 in a 0700 folder, so the next session starts with them. When a tool's input schema changes, its learned schema is dropped. To start again, delete the file.

What the cache file holds:

  • JSON types and field names that were in at least 3 results. Never values.
  • For a key seen fewer times: a hash of it and a count. The hash hides the key from someone who reads the file, but not from someone who guesses it.
  • An object is stored as a map, with no key names at all, when a key does not look like a field name (emails, dates, ids with two or more digits, keys longer than 32 characters or with more than three _ or -), when three or more keys hold objects of the same shape, or when more than 50 different keys never repeat.
  • Stable names that a tool uses as keys in every result, for example {"Alice": 3, "Bob": 5} for the same users each time, look like field names. They are stored after 3 different results.

Field names come from tool results, which can contain untrusted text (a web page, an email). A source that puts the same short key in 3 different results can get it into a learned schema, and the model reads it there. If your servers return text from untrusted sources and that matters to you, turn learning off.

To turn learning off, set "schema_cache": false in the config.

A plan

{"start": "find", "steps": {
  "find": {"call": "mail.search", "args": {"q": "invoice"},
           "next": [{"if": "length(find.messages) == `0`", "goto": "none"}, {"else": "read"}]},
  "read": {"for_each": "find.messages", "as": "m", "call": "mail.get_thread",
           "args": {"id": "{{m.thread_id}}"}, "parallel": 4, "retry": 2, "next": "out"},
  "out":  {"return": "read[].{subject: subject, from: from}"},
  "none": {"return": "'no invoices'"}}}

Step kinds:

  • call: one tool call.
  • for_each: one tool call for each item of a list, optionally in parallel. Gives a list. With "do": {"start", "steps"} instead of call, it runs a small sub-plan for each item (at most 2 levels deep).
  • paginate: calls a tool again with the cursor from the last page until there is no cursor. Gives one list.
  • return: ends the plan with a value.

Options: retry (0 to 5) tries a failed tool call again after 1 s, 2 s, 4 s ... (each try counts as a call); on_error is stop (default) or skip.

Flow: next is a step id or a list of if/goto branches with a final else. A branch may go back to an earlier step, for example to poll a status.

Expressions use JMESPath. In args, "{{expr}}" is replaced by the value. The full grammar is in the run_plan tool description, which the model reads.

Safety

  • A plan may only call tools that are marked read-only (readOnlyHint) or match allow_in_plans. Other tools are rejected before the plan runs. Call write tools on their own server, so that the normal approval prompt of your client applies. Note: readOnlyHint is the server's own claim. Only connect servers you trust, and prefer exact tool names in allow_in_plans over wildcards.
  • Hard limits stop runaway plans: maximum steps, maximum tool calls (each loop item counts), a timeout, and a maximum result size. A plan may lower these limits, never raise them. Sub-plan steps and calls count toward the same limits. The loop items of a whole run (all levels) are capped, and so are the calls in flight across the run.

To report a security problem, see SECURITY.md.

How it compares to code mode

Another way to cut tool-call turns is to let the model write code that calls the tools, and run that code in a sandbox (for example Cloudflare's "Code Mode"). Code is more flexible. A plan is less flexible, but it needs no sandbox, it can be checked before it runs (allowed tools, limits, structure), and every run gives a short, readable trace.

Benchmark your own servers

bench/bench.py runs the same task in headless Claude Code (claude -p) once per variant and run, and saves every run as stream-json so you can trace each tool call. Copy bench/spec.example.json, point each variant at an MCP config file (files named *.local.json are ignored by git), then:

uv run python bench/bench.py bench/my-spec.local.json --runs 3

Each run is a real, paid model session.

Tests

uv run pytest

Limits of version 0.1

  • Results are best when tools return structured output (outputSchema). For text results, the runner tries to parse JSON. Otherwise the step result is the text, and a plan cannot filter inside it. A learned schema cannot help with plain text. docs/server-guide.md lists what a server can add to work well in plans, with examples and a text to send to a server's maintainer.
  • Remote servers that need OAuth are not supported yet. Stdio servers and plain HTTP URLs work.

License

MIT

Frequently asked questions

What is MCP Plan Runner MCP Server?

Run a whole plan of tool calls across any MCP servers in one call.

How do I install MCP Plan Runner MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. MCP Plan Runner MCP Server runs locally from the PyPI package mcp-plan-runner with the command uvx mcp-plan-runner.

Is MCP Plan Runner MCP Server free and open source?

Yes. MCP Plan Runner MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does MCP Plan Runner MCP Server support remote (HTTP) connections?

No remote endpoint is listed for MCP Plan Runner MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does MCP Plan Runner MCP Server provide?

MCP Plan Runner MCP Server provides 1 tool: for_each. See the full tool list for descriptions and parameters.

How is MCP Plan Runner MCP Server's trust score calculated?

MCP Plan Runner MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server