Skip to content

How to add MCP servers to JetBrains AI Assistant and Junie

Junie reads MCP servers from ~/.junie/mcp/mcp.json (for you) or .junie/mcp/mcp.json (for one project), under the "mcpServers" key. In AI Assistant, paste the same JSON in Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add. A local server’s entry is a command with args; a remote server’s entry is its URL in "url".
Last checked against JetBrains’s docs

Quick facts

Local servers
Yes (stdio)
Remote servers
Streamable HTTP: Yes · SSE: PartlyURL field: url
Sign-in
OAuth: Partly · Headers: PartlyJunie supports headers and OAuth (Authorize in the /mcp list). The AI Assistant docs don’t cover sign-in or headers.
Platforms
macOS, Windows and Linux

Step by step

Add a remote server

Example: a hosted server whose latest check on AI-Powered answered, Context7.

AI Assistant

Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Junie

Add to ~/.junie/mcp/mcp.json

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Use .junie/mcp/mcp.json to share it with a project.

Add a local server

Example: a popular npm package that needs no keys, Chrome DevTools MCP.

AI Assistant

Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

{
  "mcpServers": {
    "chrome-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "chrome-devtools-mcp"
      ]
    }
  }
}

Junie

Add to ~/.junie/mcp/mcp.json

{
  "mcpServers": {
    "chrome-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "chrome-devtools-mcp"
      ]
    }
  }
}

Use .junie/mcp/mcp.json to share it with a project.

Add a server that needs an API key or header

Local servers read keys from environment variables. Replace each <NAME> placeholder with your own value in the file on your computer; never paste real keys into a website.

Example: Context7.

AI Assistant

Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ],
      "env": {
        "CONTEXT7_API_KEY": "<CONTEXT7_API_KEY>"
      }
    }
  }
}

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

Junie

Add to ~/.junie/mcp/mcp.json

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ],
      "env": {
        "CONTEXT7_API_KEY": "<CONTEXT7_API_KEY>"
      }
    }
  }
}

Use .junie/mcp/mcp.json to share it with a project.

Request headers for remote servers: partly. Junie supports headers and OAuth (Authorize in the /mcp list). The AI Assistant docs don’t cover sign-in or headers.

Add a server that signs in with OAuth

OAuth sign-in: partly. Add the server by its URL as a remote server, then sign in when asked. Junie supports headers and OAuth (Authorize in the /mcp list). The AI Assistant docs don’t cover sign-in or headers.

Config file locations

ProductForSystemPath
JunieYou (every project)All systems~/.junie/mcp/mcp.json
JunieOne projectAll systems.junie/mcp/mcp.json

Get the config for any server

Search the MCP servers on AI-Powered and copy the JetBrains AI Assistant and Junie snippet for one.

Adding several servers? Build one config with the MCP config generator.

Servers that work in JetBrains AI Assistant and Junie

Popular servers with an install config for JetBrains AI Assistant and Junie and no failing latest check.
  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 476K GitHub stars
    • Developer tools
  2. Browser Use

    MCP server

    Browser agents and cloud browsers for AI, with an MCP server for web tasks

    • 7 tools
    • Remote
    • Freemium
    • 122K GitHub stars
    • Browser automation
  3. MCP server for AI clients to scrape sites with HTTP and stealth browser sessions

    Runs locally
    • 17 tools
    • Open source
    • 105K GitHub stars
    • Web search and scraping
  4. Hosted MCP connector for creating and rendering videos from HTML through AI chat

    • Remote
    • Freemium
    • 89K GitHub stars
    • Design and media
  5. Context7

    MCP server

    Version-specific library docs and code examples piped into coding agents via MCP

    • 2 tools
    • Remote
    • Freemium
    • 65.4K GitHub stars
    • Developer tools
  6. MCP server and CLI that let coding agents drive and inspect a live Chrome browser

    Runs locally
    • Open source
    • 59.1K GitHub stars
    • Browser automation
  7. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 49.1K GitHub stars
    • Knowledge and memory
  8. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    • Remote
    • Open source
    • 34.7K GitHub stars
    • Developer tools
  9. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.7K GitHub stars
    • Developer tools
  10. ffmpeg-skill

    MCP server

    Local FFmpeg video and audio editing tools for coding agents over MCP

    Runs locally
    • Open source
    • 10.3K GitHub stars
    • Design and media
  11. Ha MCP

    MCP server

    MCP server for managing and automating Home Assistant from AI assistants

    Runs locally
    • 8 tools
    • Open source
    • 8.1K GitHub stars
    • Productivity
  12. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.8K GitHub stars
    • Analytics and data

Troubleshooting

A server I added in AI Assistant isn’t running
Click OK and then Apply, and check the Status column. Select the server and click Reconnect to retry.
Servers from Claude Desktop are missing
In AI Assistant’s MCP settings, use Import from Claude to copy them over.
Junie shows “Authorization required”
In Junie CLI, open /mcp and run Authorize for that server.
You can’t add your own servers
Companies using JetBrains IDE Services or JetBrains Central can preconfigure servers and block user-added ones.
A local server fails with “npx” (or uvx, docker) not found
Apps started from a dock or menu may not see your terminal’s PATH. Use the full path of the command (run which npx in a terminal to find it), then restart JetBrains AI Assistant and Junie.
You can’t tell whether the server or JetBrains AI Assistant and Junie is at fault
Test the server on its own with the MCP Inspector (npx @modelcontextprotocol/inspector). If it lists tools there, check the JetBrains AI Assistant and Junie setup.

Where to find logs

  • AI Assistant: Help → Show Log in Finder (macOS) or Show Log in Explorer (Windows), then the mcp folder (one log per server).
  • Junie CLI: run /mcp to see each server’s status.

Safety notes

  • Local servers run with your user account’s permissions. Only add commands you trust.
  • Review a project’s .junie/mcp/mcp.json before trusting the project.
  • Keep tokens out of project files that get committed; use the user file ~/.junie/mcp/mcp.json for personal keys.
  • A local server runs on your computer with your access to files and the network. Add only servers whose source you trust.

Questions about MCP in JetBrains AI Assistant and Junie

How do I add an MCP server to JetBrains AI Assistant?

Open Settings → Tools → AI Assistant → Model Context Protocol (MCP), click Add, paste the JSON and click OK, then Apply. Choose Global or Project in the Level column.

Where does Junie keep MCP servers?

In ~/.junie/mcp/mcp.json for your user and .junie/mcp/mcp.json in a project. Servers added under Tools → Junie → MCP Settings go to the user file.

Should I add a server to AI Assistant or Junie?

They are set up in different places: AI Assistant in its MCP settings page, Junie in mcp.json files. Add the server to the one you use. Junie CLI uses the same format as Junie in the IDE.

Which transports does AI Assistant support?

Local stdio servers, Streamable HTTP and SSE for older servers.

Can I use local MCP servers in JetBrains AI Assistant and Junie?

Yes. JetBrains AI Assistant and Junie start a local server as a command on your computer (stdio).

Do JetBrains AI Assistant and Junie support remote MCP servers?

Yes. JetBrains AI Assistant and Junie connect over Streamable HTTP. The URL goes in the "url" field.

Can JetBrains AI Assistant and Junie sign in to MCP servers with OAuth?

Partly. Junie supports headers and OAuth (Authorize in the /mcp list). The AI Assistant docs don’t cover sign-in or headers.

Other MCP clients