Feedback

Model Context Protocol (MCP) Server + Github OAuth — by zaki-yama-labs

@zaki-yama-labs Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
zaki-yama-labs
Submitted by
Community
Quality
10

About Model Context Protocol (MCP) Server + Github OAuth

# Model Context Protocol (MCP) Server + Github OAuth

Model Context Protocol (MCP) Server + Github OAuth is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by zaki-yama-labs. Supported transport: stdio. Runtime: node. Source code is hosted on github.com. Related topics: cloudflare, github-oauth, mcp.

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 zaki-yama-labs 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 zaki-yama-labs 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. It is deployed to Cloudflare Workers and acts as both an OAuth server to MCP clients and an OAuth client to GitHub. It serves as a reference example for integrating OAuth providers with an MCP server using the workers-oauth-provider library.

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

Clone the repository, install dependencies, create a GitHub OAuth App, set secrets via Wrangler (GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, COOKIE_ENCRYPTION_KEY), create a KV namespace, and deploy using wrangler deploy. For local development, create a separate GitHub OAuth App, configure .dev.vars, and run wrangler dev. Test using the MCP Inspector by connecting to the SSE endpoint. Connect MCP clients like Claude Desktop by adding the server configuration with npx mcp-remote pointing to the SSE URL.

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

  • Acts as OAuth server to MCP clients and OAuth client to GitHub.
  • Deployed on Cloudflare Workers, using Durable Objects and KV storage.
  • Provides tools: add, userInfoOctokit, and generateImage (restricted).
  • Supports remote connections via Server-Sent Events (SSE).
  • Includes built-in OAuth flow for user authentication.

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

  • Deploy a remote MCP server with GitHub authentication for tool access.
  • Restrict sensitive tools (e.g., image generation) to specific GitHub usernames.
  • Use as a reference implementation for integrating other OAuth providers with MCP on Cloudflare.
  • Allow MCP clients (Claude Desktop, Cursor, Windsurf) to connect and invoke authenticated tools.

Frequently asked questions

1 What runtime dependencies does this server require?

It requires Cloudflare Workers, Durable Objects, a KV namespace, and the wrangler CLI. You also need a GitHub OAuth App credentials (Client ID and Client Secret).

2 How are authentication tokens and user data stored?

OAuth tokens and authentication state are securely stored in a dedicated Cloudflare KV namespace (OAUTH_KV).

3 What transport protocol does this server use for MCP connections?

It uses Server-Sent Events (SSE) over HTTP. The SSE endpoint is located at /sse.

4 How is user authorization handled?

All authenticated GitHub users can access basic tools (add, userInfoOctokit). The generateImage tool is restricted to specific GitHub usernames set in the ALLOWED_USERNAMES configuration.

5 Can I connect this server to MCP clients that don't support authentication?

Clients like Cursor that do not support OAuth directly require the use of npx mcp-remote to wrap the remote SSE connection into a local STDIO server, handling authentication transparently.

Comments

No comments yet

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

Sign In

Feedback 💬