# JetBrains IDEs

## Content

1\. Open the JetBrains IDE\.
2\. Go to `Settings/Preferences -> Tools -> AI Assistant -> Model Context Protocol (MCP)`.
![](https://cdn.mescius.io/document-site-files/images/8258313f-94ec-48f2-929c-4f1bd0c4cac5/image-20260603-073524-20260617.2a66dc.png)

3\. Click the `+` button to open the New MCP Server dialog, then enter the following MCP server configuration:

```auto
{
  "mcpServers": {
    "spreadjs-mcp": {
      "type": "http",
      "url": "https://developer.mescius.com/mcp/spreadjs",
      "headers": {
        "Authorization": "Bearer <YOUR_MCP_TOKEN>"
      }
    }
  }
}
```

![](https://cdn.mescius.io/document-site-files/images/8258313f-94ec-48f2-929c-4f1bd0c4cac5/image-20260603-073421-20260617.3eee7f.png)
4\. Save the configuration\. `spreadjs-mcp` should appear in the MCP Servers list.

Reference: [MCP server - External client setup](https://www.jetbrains.com/help/idea/mcp-server.html#external-client-setup "https://www.jetbrains.com/help/idea/mcp-server.html#external-client-setup")