MCP Server Configuration
MCP (Model Context Protocol) servers extend the AI agent’s capabilities by providing access to external tools and data sources. When you execute tasks via the API, the agent can use tools from your configured MCP servers.How MCP Servers Work
MCP servers are configured per-project through the Console (not per-request). When you create a task via the API:- The system loads your enabled MCP servers from your user configuration
- The agent connects to these servers and discovers available tools
- Tools from MCP servers become available alongside built-in tools
MCP server configuration is managed through the Console under your project’s settings. The Task API automatically uses your project’s configured servers.
Supported Transport Types
HTTP/SSE Transport (Remote Servers)
For remote MCP servers accessible over the network:Stdio Transport (Local Servers)
For MCP servers that run as local processes:Tool Filtering
Control which tools are available from each MCP server:Dynamic Token Injection
This feature is for self-hosted deployments or applications using the internal Sessions API. The external Tasks API uses server-side user configuration.
context field. This allows passing end-user tokens that get resolved at connection time.
Template Syntax
Values incontext can be referenced in headers and env using {{mcp.keyName}}:
Template Resolution Rules
Use Case: Per-User Authorization
When building multi-tenant applications where each user has their own credentials for external services:context is isolated - one server cannot access another server’s tokens.
Security Considerations
- Token isolation: Each server’s context is isolated from other servers
- Secure transmission: Always use HTTPS for remote MCP servers
- Token rotation: Refresh tokens periodically for security
- Least privilege: Use
includeTools/excludeToolsto limit tool access
Marketplace-Installed Servers
In addition to manually configuring MCP servers, you can install pre-configured servers from the MCP Server Marketplace in the Console.How It Works
Marketplace servers are installed per-project with a single click:- Browse the marketplace catalog and click Connect
- Provide credentials (API key or OAuth) when prompted
- The server is automatically configured in your project
mkt- prefix (e.g., mkt-brave-search). They work identically to manually configured servers — the agent discovers their tools and can use them in tasks.
Automatic Credential Injection
When you install a marketplace server with credentials, those credentials are:- Encrypted at rest using AES-256-GCM
- Automatically injected into the server config when a session starts
- Never exposed in API responses or project configuration
You don’t need to configure environment variables or headers manually for marketplace servers. The system handles credential injection automatically based on the server template.
Marketplace vs Manual Configuration
Both approaches can coexist — you can have marketplace servers and manually configured servers in the same project.
Common MCP Servers
Here are some popular MCP servers you can configure:
For more MCP servers, see the Model Context Protocol documentation.