Quickstart
Two things to know
Section titled “Two things to know”mcpr.toml declares how the proxy behaves: where to route traffic, CSP settings, tunnel config. It’s the single source of truth for proxy behavior.
mcpr proxy run runs the proxy in the foreground. The launched PID is the proxy itself, so your process supervisor (terminal, systemd, Docker, your Node app) owns the lifecycle. SIGTERM drains gracefully.
1. Start a MCP server
Section titled “1. Start a MCP server”Use the weather example (or your own MCP server):
git clone https://github.com/pragmalabs-tech/mcpr.gitcd mcpr/examples/weather-appnpm install && npm run dev2. Configure the proxy
Section titled “2. Configure the proxy”Create mcpr.toml:
mcp = "http://localhost:9001/mcp"port = 30003. Start mcpr
Section titled “3. Start mcpr”mcpr proxy run mcpr.tomlYour proxy is live at http://localhost:3000. Point any MCP client (Claude Desktop, VS Code, Cursor) at this URL. Ctrl-C drains and exits.
4. Observe
Section titled “4. Observe”Every request lands in the local SQLite store at ~/.mcpr/store.db. Inspect it directly with sqlite3, or run:
mcpr store stats # row counts, oldest/newest events, db sizeFor a hosted dashboard with per-tool latency, session timelines, and schema tracking, run mcpr proxy setup to connect to cloud.mcpr.app.
Next steps
Section titled “Next steps”- Configuration — full
mcpr.tomlreference - CLI — proxy and store commands
- Routing — how mcpr routes MCP traffic
- Production Deployment — Docker, Kubernetes, behind Nginx
