Documentation Index
Fetch the complete documentation index at: https://context7.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
OAuth is only available for remote HTTP connections. For local MCP connections using stdio
transport, use API key authentication instead.
Why Use OAuth?
| Feature | OAuth | API Keys |
|---|---|---|
| No manual key management | ✅ | ❌ |
| Automatic token refresh | ✅ | ❌ |
| Works with stdio transport | ❌ | ✅ |
Configuration
To use OAuth, change the endpoint from/mcp to /mcp/oauth in your client configuration:
How It Works
- Your MCP client connects to the OAuth endpoint
- You’re redirected to Context7 to sign in
- After signing in, you’re redirected back to your client
- Your client automatically handles token refresh