{"id":49416884,"url":"https://github.com/anoblescm/mcp-zero-trust-proxy","last_synced_at":"2026-04-29T03:11:32.183Z","repository":{"id":350797906,"uuid":"1186854106","full_name":"AnobleSCM/mcp-zero-trust-proxy","owner":"AnobleSCM","description":"Open-source zero-trust proxy for MCP servers — adds OAuth 2.1, tool-level RBAC, audit logging, and rate limiting to any MCP server. One Docker command, zero code changes.","archived":false,"fork":false,"pushed_at":"2026-04-12T05:17:01.000Z","size":721,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T07:13:00.634Z","etag":null,"topics":["ai-agents","claude","copilot","cursor","go","mcp","model-context-protocol","oauth","proxy","rbac","security","zero-trust"],"latest_commit_sha":null,"homepage":"https://mcpzerotrust.dev","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnobleSCM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"docs/ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-20T03:58:48.000Z","updated_at":"2026-04-09T06:00:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/AnobleSCM/mcp-zero-trust-proxy","commit_stats":null,"previous_names":["anoblescm/mcp-zero-trust-proxy"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AnobleSCM/mcp-zero-trust-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnobleSCM%2Fmcp-zero-trust-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnobleSCM%2Fmcp-zero-trust-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnobleSCM%2Fmcp-zero-trust-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnobleSCM%2Fmcp-zero-trust-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnobleSCM","download_url":"https://codeload.github.com/AnobleSCM/mcp-zero-trust-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnobleSCM%2Fmcp-zero-trust-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32408564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T02:37:21.628Z","status":"ssl_error","status_checked_at":"2026-04-29T02:36:50.947Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","claude","copilot","cursor","go","mcp","model-context-protocol","oauth","proxy","rbac","security","zero-trust"],"created_at":"2026-04-29T03:11:15.216Z","updated_at":"2026-04-29T03:11:32.179Z","avatar_url":"https://github.com/AnobleSCM.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCP Zero-Trust Proxy\n\nA drop-in reverse proxy that adds zero-trust security to any [MCP](https://modelcontextprotocol.io) server — no code changes required.\n\n```bash\ndocker run -e MCP_TARGET=localhost:3000 -e AUTH_PROVIDER=github -p 8080:8080 \\\n  ghcr.io/anoblescm/mcp-zero-trust-proxy\n```\n\n## What it does\n\nMCP (Model Context Protocol) is how AI agents connect to tools — Claude, Cursor, Copilot all use it. But authentication is optional in the spec. This proxy sits between your MCP clients and servers to enforce security:\n\n- **OAuth 2.1 PKCE** — Require login via GitHub, Google, Okta, or any OIDC provider\n- **Tool-level RBAC** — Control which tools each user can call (admin/readonly/restricted roles)\n- **Per-client sessions** — Each user gets their own session boundary\n- **Audit logging** — Every request logged: who, what, when, allowed/denied (structured JSONL)\n- **Rate limiting** — Per-client token bucket (default: 300 req/min, configurable)\n\n## Why\n\n- 8,000+ MCP servers publicly reachable with no authentication ([Shodan](https://www.shodan.io/search?query=mcp))\n- 30+ CVEs in 60 days (Jan-Feb 2026)\n- CVSS 9.6 RCE in `mcp-remote`, the most popular OAuth workaround\n- Clawdbot breach hit 1,800+ servers in 48 hours\n\n## Quick start\n\n### Docker (recommended)\n\n```bash\n# 1. Pull\ndocker pull ghcr.io/anoblescm/mcp-zero-trust-proxy:latest\n\n# 2. Create config.yaml\ncat \u003e config.yaml \u003c\u003cEOF\nserver:\n  upstream_url: \"http://host.docker.internal:3000\"\n  listen_addr: \":8080\"\nauth:\n  provider: \"github\"\n  client_id: \"your-github-client-id\"\n  client_secret: \"\\${OAUTH_CLIENT_SECRET}\"\n  redirect_url: \"http://localhost:8080/auth/callback\"\nroles:\n  - name: \"admin\"\n    allowed_tools: []\n  - name: \"readonly\"\n    allowed_tools: []\naudit:\n  enabled: true\n  output: \"stdout\"\nEOF\n\n# 3. Run\ndocker run -p 8080:8080 \\\n  -v ./config.yaml:/etc/mcpproxy/config.yaml \\\n  -e OAUTH_CLIENT_SECRET=your_secret \\\n  ghcr.io/anoblescm/mcp-zero-trust-proxy:latest \\\n  --config /etc/mcpproxy/config.yaml\n\n# 4. Verify\ncurl http://localhost:8080/health\n# {\"status\":\"ok\"}\n```\n\n### Binary\n\n```bash\ngo install github.com/AnobleSCM/mcp-zero-trust-proxy/cmd/mcpproxy@latest\nmcpproxy --config ./config.yaml\n```\n\nOr download a release binary from the [releases page](https://github.com/AnobleSCM/mcp-zero-trust-proxy/releases).\n\n## How it works\n\n```\nAI Client (Claude, Cursor, Copilot)\n        │\n        ▼\n┌─────────────────────────┐\n│  MCP Zero-Trust Proxy   │\n│                         │\n│  1. Body size check     │\n│  2. Auth (OAuth 2.1)    │\n│  3. Rate limit          │\n│  4. JSON-RPC parse      │\n│  5. RBAC check          │\n│  6. Forward to upstream │\n│  7. Filter tools/list   │\n│  8. Audit log           │\n└─────────────────────────┘\n        │\n        ▼\n   Your MCP Server\n   (unchanged)\n```\n\n## Configuration\n\nAll config is in a single YAML file. See [`configs/example.yaml`](configs/example.yaml) for the full reference.\n\n**RBAC example:**\n\n```yaml\nroles:\n  - name: \"admin\"\n    allowed_tools: []          # empty = all tools\n  - name: \"readonly\"\n    allowed_tools: [\"tools/list\", \"resources/read\"]\n  - name: \"restricted\"\n    allowed_tools: [\"read_file\", \"search_files\"]\n    deny_tools: [\"delete_file\"]\n\nuser_roles:\n  mapping:\n    \"alice@company.com\": \"admin\"\n    \"bob@company.com\": \"readonly\"\n  default: \"readonly\"\n```\n\n## Performance\n\nSingle binary, ~10MB. Sub-millisecond proxy overhead:\n\n- p50: ~400us\n- p95: ~900us\n- Docker image: 6.6MB\n\nRun benchmarks: `./scripts/benchmark.sh`\n\n## Documentation\n\n- [Quick-Start Guide](docs/QUICKSTART.md) — Full setup walkthrough\n- [Configuration Reference](docs/CONFIG-REFERENCE.md) — Every YAML field documented\n- [Multi-Tenant Setup](docs/MULTI-TENANT.md) — Docker Compose for agencies\n\n## Tests\n\n236+ tests across 9 packages:\n\n```bash\ngo test ./...\ngo test -race ./...  # zero data races\n```\n\n## Contributing\n\nPRs welcome. The codebase is standard Go — no frameworks, minimal dependencies.\n\n1. Fork and clone\n2. `go test ./...` to verify\n3. Make your changes\n4. `go test ./...` again\n5. Open a PR\n\n## Security\n\nFound a vulnerability? See [SECURITY.md](SECURITY.md) for responsible disclosure.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoblescm%2Fmcp-zero-trust-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanoblescm%2Fmcp-zero-trust-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoblescm%2Fmcp-zero-trust-proxy/lists"}