mcp

mcp is a command for coding agents from px0-ai/px0. It costs 0 tokens per session (899 once invoked), scanned A, original, MIT.

A way to expose px0's stored knowledge and workflow list through the Model Context Protocol, a standard that lets coding agents discover and call tools. It communicates using JSON messages over standard input and output.

In plain words
What is it for?
Use it to serve brain searches and cited answers to an agent, or explicitly allow the agent to run workflows.
Why use it?
It lets an agent use px0's question-answering and search functions without learning the command-line interface, while keeping workflow execution disabled by default.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/px0-ai/px0/mcp
Clone the repo
git clone --depth 1 https://github.com/px0-ai/px0

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp

README.md
[![agentmods](https://agentmods.dev/badge/commands/px0-ai/px0/mcp.svg)](https://agentmods.dev/commands/px0-ai/px0/mcp)
Your own site
<a href="https://agentmods.dev/commands/px0-ai/px0/mcp"><img src="https://agentmods.dev/badge/commands/px0-ai/px0/mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 899 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00899
Opus 5 $0.00000 $0.00449
Sonnet 5 $0.00000 $0.00180
Haiku 4.5 $0.00000 $0.00090

Measured 5d ago against content hash 5f467c7bdd7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/mcp.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

px0 mcp

Expose the brain and the workflow list over the Model Context Protocol, so a coding agent can use them without being told how the CLI works.

px0 already holds two things an agent wants: a brain that can answer questions from what you have read, and a set of workflows that can be run. A CLI can be shelled out to; MCP means the agent can discover what is there and what each thing takes.

Implemented by px0/mcp.py. No MCP SDK is involved — the surface needed is initialize, tools/list, and tools/call over stdio.

px0 mcp serve [--allow-runs]

px0 mcp serve

Speak MCP on stdin and stdout, one JSON-RPC message per line, until stdin closes.

--allow-runs

Let a client run workflows.

  • Input: flag, no value. Default off.
  • Off by default because a workflow can post, send, and file things. Without it workflow_run is not even listed, and calling it returns an error saying how to enable it.
px0 mcp serve
px0 mcp serve --allow-runs

What it exposes

Tool What it does Needs --allow-runs
brain_ask Answer a question from the brain, citing the files used no
brain_search Return matching passages, without a model call no
workflows_list Every workflow, with its schedule and whether it is disabled no
guidelines_list Every guideline file, with what each one covers no
guideline_read One guideline verbatim, to follow it no
workflow_run Run a workflow, optionally as a dry run yes

brain_ask and brain_search take an optional kind (blog, paper, doc, video, stub) and k. Nothing under the brain's private folder is ever returned.

Registering it with a client

Claude Code, and most MCP clients, take a command and its arguments:

{
  "mcpServers": {
    "px0": {
      "command": "px0",
      "args": ["mcp", "serve"],
      "env": { "PX0_HOME": "/Users/you/.px0" }
    }
  }
}

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 108 lines · 0 tokens per session scan A 5f467c7bdd7f

Subscribe to this mod's changes

mcp is a command published in the GitHub repository px0-ai/px0 (241 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 899 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.