mcp-oauth-demo

pocket-id/mcp-oauth-demo
★ 2 stars Go DevOps Updated today
With Pocket ID, you can protect your MCP server with OAuth 2.1 and OpenID Connect. This demo shows how quickly OAuth can be added to an MCP server with Pocket ID.
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-oauth-demo": {
      "command": "go",
      "args": [
        "run",
        "github.com/pocket-id/mcp-oauth-demo@latest"
      ]
    }
  }
}

README Excerpt

This demo runs [Pocket ID](https://github.com/pocket-id/pocket-id) and an OAuth-protected MCP server with Docker Compose. Two [Cloudflare quick tunnels](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/) provide temporary public HTTPS URLs for Pocket ID and the MCP server.