Connect
MCP with OAuth
Connect any MCP client to HyperMemory using OAuth authentication with PKCE
MCP with OAuth
This is the recommended connection method. Paste the server URL, verify via OAuth, and you’re connected.
Server URL
https://api.hypermemory.io/mcp
Transport: Streamable HTTP.
How to connect
- Paste
https://api.hypermemory.io/mcpinto your MCP client. - Name the server HyperMemory.
- Your client opens a browser window for OAuth verification.
- Sign in with GitHub (or another supported provider).
- Approve the connection.
- The HyperMemory tools are now available to your agent.
No API key management required — tokens refresh in the background.
OAuth details
The server implements OAuth 2.0 Authorization Code with mandatory PKCE (S256):
- Discovery:
GET /.well-known/oauth-authorization-server(RFC 8414) andGET /.well-known/oauth-protected-resource/mcp(RFC 9728) - Dynamic registration:
POST /register - Authorization:
GET /authorize→ redirects to login (via Supabase — GitHub, Google, or email/password) - Token exchange:
POST /tokenexchanges the authorization code + PKCE verifier foraccess_tokenandrefresh_token - Refresh:
POST /tokenwithgrant_type=refresh_token
Authorization codes are stored in Redis with a 300-second TTL.
Advertised scopes
| Scope | Description |
|---|---|
memory:read | Read nodes, edges, and graph state |
memory:write | Create and update nodes and edges |
memory:admin | Full access including administrative operations |
Enforcement is via plan limits and API key scope, not per-scope-string gating. All authenticated users have access to the tools their plan allows.
Supported clients
Any MCP client that supports OAuth with PKCE works with this method:
- Claude Desktop — paste URL, OAuth flow is automatic. See Claude Desktop guide.
- Claude Code —
claude mcp add hypermemory --transport http https://api.hypermemory.io/mcp. See Claude Code guide. - Cursor — paste URL into MCP settings
- Windsurf — paste URL into MCP settings
- OpenClaw — add via CLI or MCP config. See OpenClaw guide.
- n8n — set Server URL in the MCP node. See n8n guide.
Tenant resolution
Your tenant namespace and database are resolved from the JWT app_metadata.tenant_ns and tenant_db fields set by Supabase. Tenants are lazily provisioned on first access — no manual setup is needed.
When to use API key instead
Use MCP with API key if:
- Your client does not support OAuth (e.g. server-side scripts, CI pipelines)
- You need a static credential for automation
- You are integrating via raw HTTP rather than an MCP SDK