MCP Server Authentication
auxilia supports three authentication methods for connecting to remote MCP servers.
No Authentication
Some MCP servers don’t require any credentials. Select None as the auth type when adding the server.
Bearer Token (API Key)
For servers that accept a static API key or token:
- Select API Key as the auth type
- Enter your API key or token
auxilia encrypts the key with AES before storing it in the database. On each request to the MCP server, the key is sent as a Bearer token in the Authorization header:
Authorization: Bearer your-api-keyOAuth 2.0
For servers that use OAuth 2.0, auxilia supports two credential management approaches:
Dynamic Client Registration (DCR)
With DCR, auxilia automatically registers itself as an OAuth client with the MCP server. This is the simplest setup — just click Connect and authorize through the provider’s consent screen.
How it works:
- You click Connect on the MCP server
- auxilia contacts the server’s OAuth metadata endpoint
- If the server supports DCR, auxilia registers a client dynamically
- You’re redirected to the provider’s consent screen
- After authorization, tokens are stored in Redis per user
DCR is used by most official servers (Notion, Linear, Sentry, Stripe, etc.).
Static OAuth Credentials
Some providers require you to create an OAuth application manually and provide the credentials to auxilia.
When adding or editing the MCP server:
- Select OAuth 2.0 as the auth type
- Enter the Client ID and Client Secret from your OAuth app
How it works:
- You click Connect on the MCP server
- auxilia uses your pre-registered client credentials
- A PKCE challenge is generated for security
- You’re redirected to the provider’s consent screen
- After authorization, auxilia exchanges the code for tokens
- Tokens are stored in Redis, scoped to your user account
Token Storage
OAuth tokens are stored in Redis with the key pattern:
mcp:{user_id}:{mcp_server_id}:tokensEach user has their own set of tokens per MCP server. Tokens are refreshed automatically when they expire.
Reconnecting
If a token expires or is revoked, click Connect again on the MCP server to re-authorize. The existing tokens will be replaced.