connect-claude
Provides tools for listing, searching, and summarizing sources from Google Drive (mocked in this scaffold).
Provides tools for listing, searching, and summarizing sources from Slack (mocked in this scaffold).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@connect-claudelist my connected sources"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
connect-claude — Foundation MCP + OAuth scaffold
One Next.js 15 app that does two things:
MCP server at
POST /mcp— JSON-RPC 2.0, Streamable-HTTP style, bearer-token protected. Exposes stubbed tools:list_sources,search_sources,summarize_source.OAuth 2.1 Authorization Server that Claude uses to authenticate users onto the MCP:
GET /.well-known/oauth-authorization-server(RFC 8414)GET /.well-known/openid-configurationGET /.well-known/oauth-protected-resource(RFC 9728, referenced from theWWW-Authenticatechallenge on 401s from/mcp)POST /oauth/register— Dynamic Client Registration (RFC 7591)GET /oauth/authorize— the multi-step "connect your sources" wizardPOST /oauth/token— authorization-code (PKCE S256 required) + refresh grants
Important: only the MCP-side OAuth (Claude → this app) is real. All provider connectors (Google Drive, Slack, …) are faked — a 1.5s mock spinner flips in-memory state. No real Google/Slack OAuth happens.
Quick start
pnpm install
cp .env.example .env.local # then set AUTH_SECRET
pnpm devApp runs at http://localhost:3000.
Related MCP server: mcp-oauth-server-next
Connect from Claude
Claude CLI:
claude mcp add --transport http foundation http://localhost:3000/mcpClaude.ai / Claude Desktop (custom connector): add the URL
https://<your-host>/mcp. Claude will:
Probe
/mcp, receive a401with aWWW-Authenticateheader pointing at the protected-resource metadata.Discover the AS metadata, dynamically register a client at
/oauth/register.Send the user's browser to
/oauth/authorize?...→ the wizard.The user "connects" providers (mocked), hits Next, sees the celebration screen, clicks Back to Claude → we redirect to Claude's
redirect_uriwithcode+state.Claude exchanges the code at
/oauth/token(PKCE verified) for a JWT bearer token and calls the MCP tools.
Env vars
See .env.example. AUTH_SECRET is required (JWT HS256 signing key in dev —
use RS256 with a proper JWKS endpoint for production).
Storage
Everything is in-memory (codes, tokens, provider connections) behind a small
adapter interface (lib/oauth/store.ts) so it can be swapped for Cloudflare
D1/KV later. Client registrations are additionally persisted to
data/clients.json so they survive dev-server restarts.
Repo map
app/mcp/route.ts MCP JSON-RPC endpoint
app/oauth/authorize/page.tsx the wizard (UI mechanics from the prototype)
app/oauth/authorize/finalize/... POST: issues the auth code, returns redirect URL
app/oauth/token/route.ts token endpoint
app/oauth/register/route.ts dynamic client registration
app/.well-known/... AS / OIDC / protected-resource metadata
lib/oauth/* store, codes, tokens (jose), PKCE
lib/mcp/* protocol dispatch, tools, bearer auth
lib/providers/data.ts static provider catalog
components/* wizard UI components
reference/ hand-committed reference PDFs (do not touch)Spec links
MCP authorization: https://modelcontextprotocol.io/specification/draft/basic/authorization
OAuth 2.1: https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1
RFC 8414 (AS metadata): https://www.rfc-editor.org/rfc/rfc8414
RFC 7591 (DCR): https://www.rfc-editor.org/rfc/rfc7591
RFC 9728 (protected resource metadata): https://www.rfc-editor.org/rfc/rfc9728
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
OAuth-protected, read-only-by-default MCP server for provenance-labeled QuillCaddie project memory.
- StytchOAuthdev.stytch.mcp
The Stytch MCP server is a reference implementation that demonstrates remote MCP server authentication and authorization using Stytch Connected Apps. It provides OAuth 2.1-compliant authorization (including PKCE), Dynamic Client Registration, and validates Stytch-issued access tokens to enable AI agents to securely interact with external services through permissioned access, supporting scopes like openid, email, profile, and manage:project_data.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables Claude AI to programmatically create and manipulate Miro boards via the Miro API with OAuth2 authentication. Supports 14 tools for board, item, and connector operations.-
- FlicenseNot gradedqualityBmaintenanceA proof-of-concept HTTP MCP server requiring OAuth 2.0 authentication before tool use. Demonstrates the full authentication flow with Claude Code, including discovery, client registration, PKCE authorization, and bearer token verification.-
- AlicenseNot gradedqualityDmaintenanceA complete MCP server implementation demonstrating all protocol features (tools, resources, prompts, sampling, and elicitation) with OAuth authentication, serving as a learning resource and starting template for building MCP servers.MIT
- FlicenseNot gradedqualityCmaintenanceMCP server that bridges Claude to an OAuth-protected API, handling OAuth flows and token refresh to enable tools like listing and creating notes.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/felixtosh/connect-claude'
If you have feedback or need assistance with the MCP directory API, please join our Discord server