Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHost the MCP/HTTP server binds to (e.g. 127.0.0.1).127.0.0.1
MCP_PORTNoPort the MCP/HTTP server listens on.9898
PROXY_HOSTNoProxy host for foreign providers. In Docker mode this is overridden to `host.docker.internal` by default so containers can reach the host proxy.
PROXY_PORTNoProxy port for foreign providers.
DATABASE_URLNoDatabase connection URL.
PROXY_ENABLEDNoWhether the proxy is enabled for foreign data sources (Yahoo/yfinance, Finnhub, Futures, Alpha Vantage, Twelve Data, FRED, CCXT, Crypto, EDGAR). Domestic sources (Tushare, Akshare, Baostock) always connect directly.
TUSHARE_TOKENNoTushare API token.
TAVILY_API_KEYNoTavily API key used for unified news retrieval.
FINNHUB_API_KEYNoFinnhub API key.
FINNHUB_ENABLEDNoWhether the Finnhub data provider is enabled.
TUSHARE_ENABLEDNoWhether the Tushare data provider is enabled.
TUSHARE_HTTP_URLNoTushare HTTP endpoint URL.
DOCKER_PROXY_HOSTNoOverride for the Docker proxy host when the proxy is not running on the Docker host.
DOCKER_POSTGRES_DBNoPostgres database name for the Docker stack.
STOCK_MCP_AUTH_MODENoAuthentication mode. One of `none`, `token`, or `jwt`. `none` is the default for local development and open-source trials (no authentication, recommended only when listening on 127.0.0.1). `token` uses a static Bearer token for all protected paths. `jwt` uses JWTVerifier with OIDC/JWKS for production.
DOCKER_POSTGRES_PORTNoHost port mapped to Postgres in the default Docker stack. Internally the container still uses postgres:5432; 15432 is used to avoid conflicting with an existing local 5432.15432
DOCKER_POSTGRES_USERNoPostgres username for the Docker stack.
SECURITY_MASTER_BACKENDNoBackend used for the security master (symbol/reference data).
DOCKER_POSTGRES_PASSWORDNoPostgres password for the Docker stack.
MCP_TOOL_TIMEOUT_SECONDSNoTimeout in seconds for MCP tool execution.
SECURITY_MASTER_SQLITE_PATHNoFilesystem path to the SQLite database used when the security master backend is SQLite.
PROVIDER_CALL_TIMEOUT_SECONDSNoTimeout in seconds for provider calls.
STOCK_MCP_STATIC_BEARER_TOKENNoStatic Bearer token used when STOCK_MCP_AUTH_MODE=token. Required for protected paths (`/mcp`, `/api/v1/*`, `/docs`, `/redoc`, `/openapi.json`, `/`) in token mode; `/health` remains anonymous.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

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