Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Optional listen host | 0.0.0.0 |
| PORT | No | Optional listen port | 3334 |
| MCP_DB_URL | No | Optional connection string for the configured driver (e.g. postgres://user:pass@host/db). For SQLite you may omit this and use MCP_DB_SQLITE_PATH. | |
| OAUTH_ISSUER | No | Optional public issuer URL (defaults to the current request origin) | |
| MCP_DB_DRIVER | No | Optional. Set to sqlite, postgres, or mysql to persist OAuth tokens. Defaults to in-memory storage. | |
| REFMD_API_BASE | Yes | Base URL of your RefMD API (e.g. https://refmd.example.com) | |
| OAUTH_CLIENT_IDS | No | Comma-separated list of allowed client_id values. Leave empty to allow any. | |
| MCP_DB_SQLITE_PATH | No | Optional filesystem path for SQLite storage. Accepts plain paths or file:/// URLs; ensure the path resolves to persistent storage when using SQLite. | ./data/refmd-mcp.sqlite |
| OAUTH_ALLOWED_REDIRECTS | No | Comma-separated list of allowed redirect URIs. Defaults to allowing HTTPS URLs and http://localhost. Include ChatGPT's callback URL. | https://chat.openai.com/aip/mcp/oauth/callback |
| ACCESS_TOKEN_TTL_SECONDS | No | Optional access-token lifetime | 3600 |
| REFRESH_TOKEN_TTL_SECONDS | No | Optional refresh-token lifetime (default 30 days) | 2592000 |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |