docs/howto/oauth.mdx
Context7 MCP server supports OAuth 2.0 authentication for MCP clients that implement the MCP OAuth specification.
| Feature | OAuth | API Keys |
|---|---|---|
| No manual key management | ✅ | ❌ |
| Automatic token refresh | ✅ | ❌ |
| Works with stdio transport | ❌ | ✅ |
To use OAuth, change the endpoint from /mcp to /mcp/oauth in your client configuration:
- "url": "https://mcp.context7.com/mcp"
+ "url": "https://mcp.context7.com/mcp/oauth"
OAuth authentication requires your MCP client to support the MCP OAuth specification. If your client doesn't support OAuth, use API key authentication instead.