Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KB_DSNNoPostgreSQL DSN override. Overrides the 'dsn' setting in kb.toml.
KB_CONFIGYesPath to the configuration file (kb.toml). If not set, the server looks for 'kb.toml' in the current working directory.
AWS_REGIONNoAWS region for Bedrock (e.g., 'us-east-1').
GITHUB_TOKENNoGitHub personal access token for the github_prs connector.
NOTION_TOKENNoNotion integration token for the Notion connector.
KB_AUTH_TOKENNoBearer token for HTTP transport. When set, the server requires 'Authorization: Bearer <token>'.
KB_PUBLIC_URLNoPublic URL of the MCP server (e.g., 'https://kb.example.com'). Required for OAuth.
LINEAR_API_KEYNoPersonal API key for the Linear connector (alternative to OAuth client credentials).
OPENAI_API_KEYNoAPI key for the OpenAI-compatible embedding backend (used when [embedding] backend = 'openai').
KB_OAUTH_SECRETNoSecret key for signing OAuth state and session cookies. Generate with `openssl rand -hex 32`. Required for OAuth.
OPENAI_BASE_URLNoBase URL for the OpenAI-compatible API.
LINEAR_CLIENT_IDNoOAuth client ID for the Linear connector (alternative to LINEAR_API_KEY).
ANTHROPIC_API_KEYNoAPI key for the Anthropic LLM backend (distillation, rerank, etc.).
AWS_ACCESS_KEY_IDNoAWS access key ID for Bedrock embedding/LLM backends.
KB_OAUTH_TOKEN_TTLNoAccess token TTL in seconds (default: 3600).3600
KB_GOOGLE_CLIENT_IDNoGoogle OAuth client ID. Required to enable OAuth for the MCP server and dashboard.
KB_OAUTH_REFRESH_TTLNoRefresh token TTL in seconds (default: 2592000 = 30 days).2592000
LINEAR_CLIENT_SECRETNoOAuth client secret for the Linear connector (alternative to LINEAR_API_KEY).
AWS_SECRET_ACCESS_KEYNoAWS secret access key for Bedrock embedding/LLM backends.
KB_GOOGLE_CLIENT_SECRETNoGoogle OAuth client secret. Required to enable OAuth.
KB_OAUTH_ALLOWED_EMAILSNoComma-separated list of additional allowed email addresses for OAuth.
AWS_BEARER_TOKEN_BEDROCKNoBedrock API key (alternative to AWS credentials) automatically recognized by boto3.
KB_OAUTH_ALLOWED_DOMAINSNoComma-separated list of allowed Google Workspace domains for OAuth (e.g., 'example.com'). Required for OAuth.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/riemannulus/knowledge-base'

If you have feedback or need assistance with the MCP directory API, please join our Discord server