Configuration File Location
By default, UMCP looks for the configuration file at:--config flag:
Only
.jsonc files are supported. The configuration file must have a .jsonc extension.Auto-Creation Behavior
If the configuration file doesn’t exist when UMCP starts, it will automatically create a default configuration file with example providers. This helps you get started quickly:Schema Validation
UMCP includes a JSON Schema for editor validation and autocomplete. Add this to the top of your config file:URL to the JSON Schema for editor validationDefault:
https://raw.githubusercontent.com/grittyninja/umcp/main/umcp.config.schema.jsonConfiguration Schema
The configuration file has a hierarchical structure:Categories
Group related providers by functionality
Providers
Define MCP server connections
Tools
Map and control tool exposure
Environment Variables
Configure secrets and credentials
Validation Rules
UMCP validates your configuration file on startup:- Required fields: At least one category with at least one provider
- Naming constraints: Category and provider names must match
[a-zA-Z0-9_-]+ - Unique names: Provider names must be unique within each category
- Transport requirements:
stdiorequirescommand,sse/streamable-httprequireurl - Strict mode: Unknown fields will cause validation errors
JSONC Features
The configuration file supports JSONC (JSON with Comments):- Comments: Use
//for line comments or/* */for block comments - Trailing commas: Allowed in objects and arrays
- Syntax highlighting: Most editors support JSONC with the
.jsoncextension
Example Configuration
Here’s a complete example showing multiple categories and providers:Next Steps
Configure Categories
Learn how to organize providers into categories
Add Providers
Connect MCP servers to UMCP