MCP Pill
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Pill Preflight example.local-reader without approval and show the policy decision"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Build faster. Spend less. Keep control. MCP Pill gives MCP creators a portable preflight layer before tools, models, clouds, or money can cause a side effect.
Mission: make MCP useful in production without surrendering control of permissions, data, cost, or provider choice. Read the mission, vision, and values and bring us the hardest MCP failure you can reproduce.
MCP Pill is a dependency-free, local-first MCP server for compact plugin discovery, fail-closed policy preflight, operational message validation, offline budget estimates, contribution previews, and payload-free audit receipts.
It does not proxy, install, import, or execute cataloged plugins. This narrow boundary is deliberate: operators can review capability metadata before granting credentials, network access, money, or side effects.
Problems addressed
Tool-schema bloat: clients see nine small governance tools and search compact plugin briefs on demand.
Unsafe defaults: unknown and disabled plugins are denied.
Ambiguous origin: catalog metadata is explicitly returned as
UNTRUSTED.Missing approvals: preflight separates approval state from model intent.
Audit leakage: receipts contain target and decision metadata, never tool arguments or secrets.
Supply-chain surprise: the runtime has no third-party Python dependency and cataloging never imports plugin code.
Cost and community opacity: dry-run budget estimates and a 25/75 contribution preview expose assumptions without processing payments.
This project is a governance preflight, not an execution sandbox, authentication provider, or complete MCP gateway. See Threat model.
Related MCP server: agent-control-plane
Why contributors join
A practical first contribution: add a failure fixture, improve one denial reason, or translate one guide.
A useful result: every accepted change ships with a reproducible test, evidence, and rollback notes.
A fair boundary: the local core stays free; optional services cannot disable it; community allocation is transparent and preview-only.
A portable skill: the same contracts work on a laptop, server, or air-gapped host before a provider is chosen.
Tools
Tool | Purpose |
| Report local process state |
| Return bounded plugin briefs |
| Inspect one declarative record |
| Produce a fail-closed, non-executing decision |
| Validate traceable operational envelopes |
| Read bounded payload-free receipts |
| Verify a receipt hash chain |
| Estimate provider reference and local upper-bound cost without execution |
| Preview contributor allocation; never processes payment |
All tools declare read-only, non-destructive annotations. No network transport is shipped in v0.1.0; stdio keeps the trust boundary local and explicit.
Run
Zero-configuration first run (no API key, provider, or network):
PYTHONPATH=src python -m mcp_governed_catalog.serverOperator shortcuts (still offline and non-destructive):
PYTHONPATH=src python -m mcp_governed_catalog.cli doctor
PYTHONPATH=src python -m mcp_governed_catalog.cli budget \
--duration-seconds 30 --variants 3 \
--commercial-rate-cents-per-second 30 --gpu-rate-cents-per-hour 76 \
--fixed-cost-cents 25 --retry-limit 0
PYTHONPATH=src python -m mcp_governed_catalog.cli community \
--gross-revenue-cents 10000 \
--contributions '[{"collaborator_id":"a","production_hours":2}]'To enable a catalog record for preflight only, after human review:
PYTHONPATH=src python -m mcp_governed_catalog.cli activate \
example.local-reader --approval-ref human-ticket-001 \
--cost-ceiling-cents 0 --confirmThis does not execute a plugin, use credentials, open a listener, or call a
provider. Remove the local activation with deactivate <plugin_id>.
For a human-readable starting point, copy
mcp-pill.config.example.json. It is a declarative checklist for an operator;
v0.1 does not silently activate plugins or paid resources from a config file.
Example request:
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"policy.evaluate","arguments":{"plugin_id":"example.local-reader","approval_present":false}}}The example plugin is disabled, so the result is DENY and nothing executes.
Test
PYTHONPATH=src python -m unittest discover -s tests -v
python -m compileall -q src
docker build --network=none -t mcp-governed-catalog:0.1.0 .Hardened container
The image runs as UID/GID 10001, has no package-manager install step, and is intended for --network none, read-only root filesystem, dropped capabilities, and no-new-privileges:
docker run --rm -i --network none --read-only \
--cap-drop ALL --security-opt no-new-privileges \
mcp-governed-catalog:0.1.0Add a plugin record
Edit src/mcp_governed_catalog/data/plugins.json. Keep new records disabled until an independent review covers source, license, identity, secrets, network, cost, permissions, tests, and rollback. The catalog is declarative; it is not an installer.
Project status
0.1.0 is a tested security baseline. It intentionally omits remote transport and plugin dispatch. See research, security policy, and contributing.
Project name: MCP Pill · GitHub slug: mcp-pill · License: MIT.
Five-minute contributor path
git clone <your-fork-url> mcp-pill
cd mcp-pill
PYTHONPATH=src python3 -m mcp_governed_catalog.cli doctor
PYTHONPATH=src python3 -m unittest discover -s tests -vThen choose one small improvement from ROADMAP.md and open an issue describing the failure, expected behavior, test, and rollback.
Why this exists
MCP made it easy to connect models to tools. Production teams then met the same hard questions: which tools are trustworthy, how much context should be advertised, who approved a side effect, where did a credential leak, and how can a decision be reconstructed? MCP Pill is a deliberately small answer: discover, preflight, record, and stop before execution.
Join the community
We welcome maintainers, security reviewers, MCP server authors, local-model builders, documentation translators, and production operators. Start with a good first issue, propose a measurable failure mode, or improve the bilingual docs. Please read Contributing and Security first.
English and Portuguese community guide: docs/COMMUNITY.md
Project history and decisions: MEMORIAL.md
Mission, vision, and values: MISSION.md
Beginner guide with ready-to-use AI prompts: docs/START-HERE.md
Security is the first gate: SECURITY.md · threat model
Release-readiness review: legal, security, and value review
Want to help explain MCP to more people? Use the ready-to-publish YouTube launch kit.
Channel promotion link: YouTube
Additional promotional video: watch on YouTube · embed instructions
Innovation direction: docs/INNOVATION-CHARTER.md
License note: MCP Pill is MIT/open source, so the license cannot prohibit a field of use such as commercial use. A private deployment may add a stricter operational policy gate; see licensing.
Available Tools
9 toolsaudit.tailARead-onlyIdempotent
Read bounded payload-free decision receipts from this process.
Inputs: limit.
audit.verifyCRead-onlyIdempotent
Verify a payload-free audit hash chain.
Inputs: events (required).
budget.previewARead-onlyIdempotent
Estimate commercial and local upper-bound cost without executing a provider.
Inputs: variants (required), retry_limit (required), duration_seconds (required), fixed_cost_cents (required), +2 more.
catalog.inspectARead-onlyIdempotent
Inspect one declarative plugin record without executing it.
Inputs: plugin_id (required).
catalog.searchBRead-onlyIdempotent
Return compact untrusted plugin briefs; no plugin is loaded.
Inputs: query (required), limit.
community.previewCRead-onlyIdempotent
Preview a 25/75 contribution allocation; never processes a payment.
Inputs: contributions (required), gross_revenue_cents (required).
gateway.healthARead-onlyIdempotent
Report local governed-catalog state.
Inputs: no named parameters.
messages.validateCRead-onlyIdempotent
Validate a traceable operational message envelope.
Inputs: message (required).
policy.evaluateARead-onlyIdempotent
Fail-closed policy preflight; this tool never dispatches the plugin.
Inputs: plugin_id (required), approval_present (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct domain or action: health, catalog search/inspect, policy evaluation, message validation, audit tail/verify, and previews for budget/community. Even catalog.search and catalog.inspect differ clearly by breadth of results versus single-record inspection, leaving no realistic confusion between tools.
Tool names almost uniformly follow a domain.action pattern (catalog.search, policy.evaluate, audit.verify, etc.), but gateway.health breaks the convention by using a noun instead of a verb. The pattern is still readable and predictable, with only one minor deviation.
Nine tools is a well-scoped count for this governance/preflight server. Each tool covers a meaningful capability area without redundancy or bloat, and the set feels neither sparse nor overloaded.
The domain is pre-execution governance—health, catalog discovery, policy evaluation, message validation, audit, and previews—and the set covers all apparent phases of that process. There are no obvious dead ends or missing operations for the stated purpose.
Related MCP Connectors
Guarded MCP server for agent-readable business truth, provenance, readiness, and discovery.
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
Governed MCP: agent audit, provenance, deterministic checks, and receipt-backed FragGate execution.
Security & DLP proxy for MCP: tool-poisoning scans, PII redaction on tool args/results. Beta.
Related MCP Servers
- FlicenseAqualityDmaintenanceSafety-first local MCP tool gate with control plane, runtime security, and observability for managing MCP backends.4-
- AlicenseNot gradedqualityDmaintenanceEnables users to deploy a production-grade control plane for agents, providing a spec-compliant MCP server, scoped tool grants, failure-mode detection, and cost governance.MIT
- AlicenseNot gradedqualityCmaintenanceControl-plane proxy that sits in front of MCP servers, enforcing per-identity policy (YAML/OPA/Cedar), budget limits, and an audit trail on every call. Includes real-time anomaly detection that auto-blocks a compromised agent without a human in the loop.17Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables transparent MCP proxying with a hash-chained effect ledger, classifying agent actions by reversibility, enforcing approval gates, and dry-run previews of sessions.MIT