Skip to main content

MCP Settings

Configurations on this page assume that openbb-mcp is installed.

All settings can be configured via the mcp_settings.json file or as environment variables.

SettingEnvironment VariableTypeDefaultDescription
api_prefixOPENBB_MCP_API_PREFIXstringNoneOverrides the API prefix from SystemService.
nameOPENBB_MCP_NAMEstring"OpenBB MCP"Server name.
descriptionOPENBB_MCP_DESCRIPTIONstringServer description.
versionOPENBB_MCP_VERSIONstringNoneServer version.
default_tool_categoriesOPENBB_MCP_DEFAULT_TOOL_CATEGORIESlist[string]["all"]Default active tool categories on startup.
allowed_tool_categoriesOPENBB_MCP_ALLOWED_TOOL_CATEGORIESlist[string]NoneRestricts available tool categories to this list.
enable_tool_discoveryOPENBB_MCP_ENABLE_TOOL_DISCOVERYbooleanTrueEnable tool discovery.
describe_responsesOPENBB_MCP_DESCRIBE_RESPONSESbooleanFalseInclude response types in tool descriptions.
system_prompt_fileOPENBB_MCP_SYSTEM_PROMPT_FILEstringNonePath to a text file for the system prompt.
server_prompts_fileOPENBB_MCP_SERVER_PROMPTS_FILEstringNonePath to a JSON file with a list of server prompt definitions.
cache_expiration_secondsOPENBB_MCP_CACHE_EXPIRATION_SECONDSfloatNoneCache expiration time in seconds. 0 to disable.
on_duplicate_toolsOPENBB_MCP_ON_DUPLICATE_TOOLSstringNoneBehavior for duplicate tools (warn, error, replace, ignore).
on_duplicate_resourcesOPENBB_MCP_ON_DUPLICATE_RESOURCESstringNoneBehavior for duplicate resources.
on_duplicate_promptsOPENBB_MCP_ON_DUPLICATE_PROMPTSstringNoneBehavior for duplicate prompts.
resource_prefix_formatOPENBB_MCP_RESOURCE_PREFIX_FORMATstringNoneFormat for resource URI prefixes (protocol or path).
mask_error_detailsOPENBB_MCP_MASK_ERROR_DETAILSbooleanNoneMask error details from user functions.
dependenciesOPENBB_MCP_DEPENDENCIESlist[string]NoneList of dependencies to install.
include_tagsOPENBB_MCP_INCLUDE_TAGSset[string]NoneOnly expose components with these tags.
exclude_tagsOPENBB_MCP_EXCLUDE_TAGSset[string]NoneExclude components with these tags.
module_exclusion_mapOPENBB_MCP_MODULE_EXCLUSION_MAPdict[str, str]NoneMap API tags to Python module names for exclusion.
uvicorn_configOPENBB_MCP_UVICORN_CONFIGdict{"host": "127.0.0.1", "port": "8001"}Configuration for the Uvicorn server.
httpx_client_kwargsOPENBB_MCP_HTTPX_CLIENT_KWARGSdict{}Configuration for the async httpx client.
client_authOPENBB_MCP_CLIENT_AUTHtuple[string, string]None(username, password) for client-side basic authentication (passed-through to HTTPX).
server_authOPENBB_MCP_SERVER_AUTHtuple[string, string]None(username, password) for server-side basic authentication.
note

Runtime argument keys, in general, "-" and "_" are interchangeable. Nested uvicorn arguments should use _.