Serena Code Intelligence MCP
Published · Updated
At a glance
- Category
- Code & Git
- GitHub repository
- oraios/serena
- Watch out for
- Language server quality varies by language; some features such as find implementations are only available for some.
Serena, from Oraios AI, describes itself as the IDE for your coding agent, and that is a fair summary. It gives an agent symbol-level code tools: find a symbol, list a file's outline, find everything that references a function, find implementations, rename across a project, and insert or replace code at the level of a function or class rather than by line number. An earlier version of this page pointed at a repository that never existed; the real project is oraios/serena.
The point is efficiency in large codebases. A coding agent without these tools reads whole files and greps for strings, which wastes context and misses relationships. With Serena it can ask for a symbol and its references and get exactly that. Serena has two backends. The free one uses language servers (LSP) and supports over 40 programming languages. The other is a paid JetBrains plugin, with a free trial, that uses the IDE's own analysis and adds things like type hierarchy, moving symbols and files, and inline refactoring.
Serena also includes basic tools for reading files, regex search and replace, and running shell commands, plus project memories it can write and read between sessions. Version 2 introduced a REPL-based agent interface, so check the current docs when following older guides.
How it connects
Your AI app
An assistant or agent that supports MCP
Serena Code Intelligence MCP
Runs as
- Python (uv / pip)
Gives the agent
- Symbol retrieval
- Symbolic editing
- Refactoring
- Diagnostics
- Basic tools and memory
Your codebase
The data or system the tools act on
What it can do
- Symbol retrieval
- Find symbols, get a file's symbol overview, find referencing symbols, declarations and implementations, without reading whole files.
- Symbolic editing
- Replace or insert code relative to a symbol, such as a whole function body, which is more reliable than line-number edits.
- Refactoring
- Rename symbols with the language server backend; the JetBrains backend adds renaming files, moving and inlining.
- Diagnostics
- Read diagnostics and inspections so the agent sees type errors after an edit.
- Basic tools and memory
- search_for_pattern, replace_content, read_file and execute_shell_command, plus per-project memories that persist across sessions.
Setting it up
Install with uv: uv tool install -p 3.13 serena-agent, which makes the serena command available. Run serena init to set it up with the language server backend, or serena init -b JetBrains to use the JetBrains plugin. Some languages need extra language server dependencies, listed on Serena's language support page. Then configure your client's launch command following Serena's client guide, which covers Claude Code, Codex, Claude Desktop and IDEs. Serena has per-project configuration with local overrides, which is where you can turn off tools you do not want, such as shell execution.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Navigating a large unfamiliar codebase by symbols and references
- Renaming a function safely across many files
- Making targeted edits to specific methods without the agent rewriting whole files
- Giving a coding agent IDE-quality analysis in a terminal-based client
Limitations and things to watch
- Language server quality varies by language; some features such as find implementations are only available for some.
- Advanced refactorings need the paid JetBrains plugin.
- execute_shell_command lets the agent run commands. The README says basic tools like this are usually disabled by default in clients such as Claude Code or Codex, but check your config.
- Language servers add startup time and memory use on very large projects.
Sources
Written from the project's own documentation, checked November 2026.
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.