# 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 25 Nov 2026. Page: https://ai-powered.com/clients/jetbrains

## Quick facts

- Local servers: Yes (stdio)
- Remote servers: Streamable HTTP: Yes · SSE: Partly (URL field: url)
- Sign-in: OAuth: Partly · Headers: Partly (Junie 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

## JetBrains AI Assistant and Junie config files

| Scope | System | Path |
| --- | --- | --- |
| For you | Junie, All systems | `~/.junie/mcp/mcp.json` |
| For one project | Junie, All systems | `.junie/mcp/mcp.json` |

## Servers that work in JetBrains AI Assistant and Junie

- [REA](https://ai-powered.com/mcp/rea): CLI and MCP server that lets coding agents reverse engineer apps and binaries
- [Browser Use](https://ai-powered.com/mcp/browser-use): Browser agents and cloud browsers for AI, with an MCP server for web tasks
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): MCP server for AI clients to scrape sites with HTTP and stealth browser sessions
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): Hosted MCP connector for creating and rendering videos from HTML through AI chat
- [Context7](https://ai-powered.com/mcp/context7): Version-specific library docs and code examples piped into coding agents via MCP
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): MCP server and CLI that let coding agents drive and inspect a live Chrome browser
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Local MCP server that builds a code knowledge graph for AI coding agents
- [GitHub](https://ai-powered.com/mcp/github): Official MCP server connecting AI assistants to GitHub repos, issues and workflows
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): MCP toolkit giving coding agents symbol-level code retrieval and editing
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): Local FFmpeg video and audio editing tools for coding agents over MCP
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): MCP server for managing and automating Home Assistant from AI assistants
- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Open-source analytics app where an AI agent builds charts and dashboards from your 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.

## Safety

- 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

### 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.

## Sources

- [AI Assistant docs: Model Context Protocol](https://www.jetbrains.com/help/ai-assistant/mcp.html)
- [Junie docs: MCP configuration](https://junie.jetbrains.com/docs/junie-cli-mcp-configuration.html)
- [Junie docs: MCP settings in the IDE](https://junie.jetbrains.com/docs/junie-plugin-mcp-settings.html)