mcp-portal MCP Server
Cursor CLI delegation for verified bulk reads and reference-driven code generation.
mcp-portal scores 61 (Good), licensed MIT and written in Python. It installs as a local process. It declares 5 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 21 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
61 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
75/100 for listing completeness. Lost points: 5 of 5 tools barely described, short summary.
How quality is graded
Where the 61 comes from
22 + 15 + 0 + 10 + 4 + 10 = 61. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.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.
{ "mcpServers": { "apollion69-mcp-portal": { "command": "uvx", "args": [ "mcp-portal" ], "env": { "MCP_PORTAL_HOME": "", "MCP_PORTAL_CLI": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
MCP_PORTAL_HOME | Optional | Optional cache and evidence directory (default ~/.cache/mcp-portal) |
MCP_PORTAL_CLI | Optional | Optional path to cursor-agent or agent executable |
Tools5Tool docs quality grade F
All capabilitiesbulk_readtoolcode_writetoolmcpServerstoolGeneric JSON
reference_pathtoolyes
target_pathtoolno
About
mcp-portal
mcp-portal is a stdio Model Context Protocol server that lets a frontier agent (Claude Code, Codex, Cursor, or any MCP host) delegate two jobs to the Cursor CLI on its own quota: bounded bulk_read (read explicitly selected files, answer with verified quotes) and code_write (generate boilerplate from a reference file + spec; the server writes the target file). Python stdlib only—no Node runtime and no MCP SDK dependency.
On 2026-09-08, composer-2.5-fast generated roughly 5× faster than a frontier model on the same brief (line-rate measurement). Cursor quota is separate from the host model's.
Quick start
uvx mcp-portal
Also available as pipx install mcp-portal / pip install mcp-portal, and listed in the
MCP Registry as io.github.apollion69/mcp-portal.
To run the development head instead of the release:
uvx --from git+https://github.com/apollion69/mcp-portal mcp-portal
Requirements: Python 3.10+, the Cursor CLI (cursor-agent) installed and logged in.
Doctor (CLI inventory, no model call):
mcp-portal-doctor
Configure per host
Claude Code
claude mcp add --scope user mcp-portal -- uvx mcp-portal
Codex (~/.codex/config.toml)
[mcp_servers.mcp-portal]
command = "uvx"
args = ["mcp-portal"]
tool_timeout_sec = 150
Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"mcp-portal": {
"command": "uvx",
"args": ["mcp-portal"]
}
}
}
VS Code (.vscode/mcp.json, servers key)
{
"servers": {
"mcp-portal": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-portal"]
}
}
}
Generic mcpServers JSON
{
"mcpServers": {
"mcp-portal": {
"command": "uvx",
"args": ["mcp-portal"]
}
}
}
Environment (optional):
| Variable | Purpose |
|---|---|
MCP_PORTAL_HOME | Cache, receipts, evidence (default ~/.cache/mcp-portal) |
MCP_PORTAL_CLI | Path to cursor-agent / agent |
Tools
bulk_read
| Argument | Required | Description |
|---|---|---|
paths | yes | 1–16 file paths (relative to root or absolute) |
question | yes | Question answered only from those files |
root | no | Common root; default = longest common parent of paths |
model | no | Override model; policy applies when omitted |
Returns status, run_id, answer.findings[] (file, start, end, quote, fact), gaps[], metrics, model_decision.
code_write
| Argument | Required | Description |
|---|---|---|
spec | yes | What to generate |
reference_path | yes | Style/context reference file |
target_path | no | If set, server writes this path |
model | no | Override model |
Returns generated code, optional bytes_written, run_id, metrics.
status
No arguments. Returns CLI path, auth hint, default model, policy summary, cache location, receipt counters.
Model policy
Shipped in model-policy.json (package data). Defaults:
- Prefer Cursor-native models (
composer-2.5, thencursor-grok-*) - Strip
-fastsuffixes (never auto-select fast variants) - Other vendors only when explicitly requested and listed by
cursor-agent --list-models
Override by editing model-policy.json in the installed package or setting policy fields via a custom file at MCP_PORTAL_HOME (future) — today, replace the package file or patch preferred in your fork. Each tool result includes model_decision.reason (default_preferred, fast_suffix_stripped, cursor_native_explicit, explicit_other_vendor, requested_unavailable_fallback).
How it works
- Authorize — Server reads only listed paths; blocks credential-like paths and secret patterns.
- Manifest — Request JSON includes per-file SHA-256 hashes.
- Isolate — Cursor CLI runs with fresh
CURSOR_CONFIG_DIR, deny-all permissions,--mode ask, sandbox enabled. - Verify — Every
quoteinbulk_readanswers must appear verbatim in the cited line range; bad citations are dropped or fail closed. - Evidence — Per-run directory under
MCP_PORTAL_HOME/runs/<run_id>/with manifest (hashes, metrics; not full source). - Budgets — 16 files, 128 KiB combined input, 90s timeout, bounded stdio frames.
Windows
On Windows, the delegate uses a local Cursor CLI run when either:
MCP_PORTAL_CLIpoints at an executable (including test stubs), orcursor-agent/agentis found onPATHand is a real file.
Otherwise it falls back to the wsl.exe bridge into Ubuntu/WSL (python3 -m mcp_portal.delegate --worker). Force either mode with MCP_PORTAL_BACKEND=local or MCP_PORTAL_BACKEND=wsl.
- MCP config can use native
uvx mcp-portalwhen the CLI is on PATH, orwsl.exe+uvx mcp-portalwhen it is not - Helpers in
clients/windows/(delegate.ps1,parse_read.ps1) MCP_PORTAL_WORKERoverrides the default WSL worker commandMCP_PORTAL_WSL_CDsets the WSL working directory (default~)
Optional Claude Code routing hook
Install read gate + skill (generic, transactional):
python3 -m mcp_portal.install_router prepare --client claude --python python3 \
--state-root ~/.cache/mcp-portal/router-tx --shell bash --command-shell bash
# then apply with the printed transaction id
See docs/skills/cursor-bulk-reader/SKILL.md for agent-facing guidance. The router blocks or warns on large full-file reads (>350 lines or >128 KiB) and points agents at bulk_read.
Repo-level MCP registration helper:
python3 -m mcp_portal.install plan
python3 -m mcp_portal.install apply --target claude-mcp
Security
See SECURITY.md. Summary: you choose which files leave the machine; the CLI runs read-only with tools denied; quotes are verified server-side. Not a substitute for secret hygiene.
Related projects
Several Node-based bridges expose Cursor via MCP (different tradeoffs: SDK/Node stack, varying isolation and verification):
- lipey1/cursor-agent-mcp
- andreilungeanu/cursor-delegate-mcp
- sailay1996/cursor-agent-mcp
- ai-nuke/cursor-agent-mcp
- JaimeJunr/cursor-mcp-bridge
mcp-portal focuses on stdlib Python, hash-pinned manifests, quote verification, server-side writes for code_write, model policy, and WSL-first Windows support.
License
MIT — see LICENSE.
Frequently asked questions
What is mcp-portal MCP Server?
Cursor CLI delegation for verified bulk reads and reference-driven code generation.
How do I install mcp-portal 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-portal MCP Server runs locally from the PyPI package mcp-portal with the command uvx mcp-portal.
Is mcp-portal MCP Server free and open source?
Yes. mcp-portal 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-portal MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-portal MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-portal MCP Server provide?
mcp-portal MCP Server provides 5 tools, including bulk_read, code_write, mcpServers, and reference_path. See the full tool list for descriptions and parameters.
How is mcp-portal MCP Server's trust score calculated?
mcp-portal MCP Server scores 61 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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.