Feedback

Model Context Protocol (MCP) Server + Github OAuth — by fredrikp999

@fredrikp999 Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
fredrikp999
Submitted by
Community
Quality
20
Stars
1

About Model Context Protocol (MCP) Server + Github OAuth

Example MCP server with OAuth based on https://developers.cloudflare.com/agents/guides/remote-mcp-server/

Model Context Protocol (MCP) Server + Github OAuth is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by fredrikp999. Supported transport: stdio. Runtime: node. The repository has 1 GitHub stars. Source code is hosted on github.com. Related topics: github-auth, mcp, oauth.

Setup

{
    "mcpServers": {
        "math": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp-github-oauth.<your-subdomain>.workers.dev/sse"
            ]
        }
    }
}

Model Context Protocol (MCP) Server + Github OAuth — by fredrikp999 config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "math": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp-github-oauth.<your-subdomain>.workers.dev/sse"
            ]
        }
    }
}

Model Context Protocol (MCP) Server + Github OAuth — by fredrikp999 tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Model Context Protocol (MCP) Server + Github OAuth?

This is a Model Context Protocol (MCP) server that supports remote MCP connections with built-in GitHub OAuth, deployable to your own Cloudflare account. It serves as a reference example for integrating other OAuth providers with an MCP server deployed to Cloudflare.

How to use Model Context Protocol (MCP) Server + Github OAuth?

Clone the repo and install dependencies with npm install. Create a GitHub OAuth App, set secrets via Wrangler, create a KV namespace, and deploy with wrangler deploy. Test using the MCP Inspector by connecting to the SSE endpoint. Configure Claude Desktop or other MCP clients to connect using the mcp-remote command.

Key features of Model Context Protocol (MCP) Server + Github OAuth

  • Built‑in GitHub OAuth authentication for remote MCP connections
  • Deployable to Cloudflare Workers with persistent KV storage
  • Supports conditional tool availability based on GitHub usernames
  • Acts as both OAuth server to clients and OAuth client to GitHub
  • Uses Durable Objects for persistent state and authentication context
  • Exposes tools via Server‑Sent Events (SSE) protocol

Use cases of Model Context Protocol (MCP) Server + Github OAuth

  • Deploy a remote MCP server authenticated via GitHub login
  • Restrict sensitive tools (e.g., image generation) to specific GitHub users
  • Connect MCP clients like Claude Desktop or Cursor to a protected remote server
  • Use as a reference for integrating other OAuth providers with Cloudflare Workers

Frequently asked questions

1 What OAuth providers are supported?

The server ships with GitHub OAuth built‑in, but the README notes it can be used as a reference for integrating other OAuth providers.

2 What runtime and dependencies are required?

The server runs on Cloudflare Workers. Dependencies include the workers-oauth-provider library, Durable MCP, and the MCP Remote library. Local development requires Node.js and Wrangler.

3 Where does authentication state data live?

Tokens and authentication state are stored in a Cloudflare KV namespace (called OAUTH_KV) configured during deployment.

4 Are there any known limits?

The README notes that Claude Desktop does not yet fully support remote MCP servers and may show error messages, though tools still work. Cursor supports HTTP+SSE servers but not authentication, so the mcp-remote command is still required.

5 What transports and authentication are supported?

The server uses Server‑Sent Events (SSE) as the transport. Authentication is handled via GitHub OAuth; all authenticated GitHub users can access basic tools, while the generateImage tool is restricted to usernames listed in the ALLOWED_USERNAMES configuration.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬