Enabling MCP
The Model Context Protocol (MCP) feature in the Editor allows you to connect to remote MCP servers and access their tools directly from your prompts. This enables powerful integrations with external services, databases, and APIs without leaving the editor.
To enable MCP in your prompts, follow the steps below:
- Select an LLM.
To enable the MCP integration capability, you must select only Anthropic LLMs.
-
Select MCP in the LLM’s settings:
-
Set the toggle to On:
The MCP integration is ready. Below is how the editor section appears:
MCP Server Configuration
Before running a prompt, configure the MCP server settings. Each MCP server requires specific configuration settings. Below is the complete JSON schema structure:
{
"type": "url",
"url": "https://example-server.modelcontextprotocol.io/sse",
"name": "example-mcp",
"tool_configuration": {
"enabled": true,
"allowed_tools": ["example_tool_1", "example_tool_2"]
},
"authorization_token": "YOUR_TOKEN"
}
The following table describes the settings:
| Field | Type | Required | Description |
|---|
type | string | Yes | Currently only url is supported |
url | string | Yes | The URL of the MCP server. It must start with https:// |
name | string | Yes | A unique identifier for the MCP server. Define one of your choice |
tool_configuration | object | No | Configure tool usage settings |
tool_configuration.enabled | boolean | No | Whether to enable tools from the server (default: true) |
tool_configuration.allowed_tools | array | No | List to restrict which tools are allowed (by default, all tools are allowed) |
authorization_token | string | No | OAuth authorization token (if required by the MCP server) |
You can connect to multiple MCP servers simultaneously by adding multiple server configurations:
[
{
"type": "url",
"url": "https://mcp.example1.com/sse",
"name": "mcp-server-1",
"authorization_token": "YOUR_TOKEN_1"
},
{
"type": "url",
"url": "https://mcp.example2.com/sse",
"name": "mcp-server-2",
"authorization_token": "YOUR_TOKEN_2"
}
]
Note that many MCP servers require OAuth authentication. There are several ways to obtain an access token before configuring the server. One is by using the MCP Inspector. Read the MCP Inspector official documentation to learn how to use it.
Once you retrieved the Oauth token, paste it in the authorization_token field.