Skip to content
FossShelf
Home / Categories / For Engineers

Serena

MCP server giving AI coding agents IDE-level code tools

Replaces Cursor, Jetbrains Ai Assistant, Github Copilot

31.45K starsGPL-3.0-or-later (with MIT-licensed SolidLSP component)reviewed 9 Nov 2026last commit 14 Nov 2026
Screenshot of Serena

Who it's for

Developers running Claude Code or Codex on large multi-file Python projects

Serena gives Claude Code and Codex precise symbol lookup and refactoring tools, replacing token-intensive text searches with single-call operations. Claude Code evaluations on a large Python codebase showed cross-file renames and reference lookups collapsing from 8 to 12 manual steps to one atomic call.

The codebase is small (under a few thousand lines) or the agent is doing mostly generative work, writing new files rather than navigating existing code. Serena's value increases with codebase complexity.

Backend developers maintaining large Java or Kotlin projects in JetBrains IDEs

The JetBrains plugin exposes the full IntelliJ code analysis engine to the agent, including type hierarchy navigation, project dependency search, and interactive debugging with breakpoints. Teams already paying for IntelliJ IDEA can trial the plugin at no initial cost.

You use Rider or CLion; the JetBrains plugin explicitly does not support those IDEs.

Teams building or maintaining multi-language monorepos

With 40+ language server integrations, Serena can provide symbol-level understanding across a monorepo spanning TypeScript, Go, Python, and other languages. Each language server works independently, so you can add language support incrementally.

All relevant code is in one language and your AI client already has adequate built-in code navigation for that language. Adding an MCP server layer adds setup cost without proportional gain in single-language projects.

The problem

AI coding agents operate on text. When an agent needs to rename a function, it searches for the string, hopes it catches every reference, and edits each one manually. In a small codebase this works. In a large one, it misses overloaded methods, skips references in generated files, and costs dozens of token-intensive round trips to verify the result. The challenge deepens with refactoring. Moving a class, inlining a variable, or finding all implementations of an interface requires structural understanding that only a language server or IDE provides. Without it, agents fall back to grep-style searches that return false positives, skip non-obvious usages, and produce edits the developer must then manually verify and fix.

How it works

Symbol-Level Code Retrieval

Serena exposes symbol lookup, file outline, reference finding, and declaration navigation as MCP tools. An agent can get all callers of a method as a precise list without scanning every file by text. Both the language server backend and the JetBrains plugin support these operations.

Cross-File Refactoring

Rename and symbol-level editing work via language servers; the JetBrains plugin adds move, inline, and propagate deletions. Unlike text-based search and replace, these operations understand scope, so a rename only touches actual usages of that symbol, not coincidental string matches in comments or strings.

Symbolic Editing Without Line Numbers

Replace a function body, insert code before or after a symbol, or safely delete a symbol with propagated cleanup, all by symbol name. This avoids the off-by-one and context-mismatch errors common to line-number-based editing that most AI agents rely on.

MCP Integration Across Clients

Serena connects to any MCP-compatible client: Claude Code, Codex CLI, OpenCode, Gemini-CLI, VSCode with Copilot, JetBrains IDEs, Claude Desktop, and others. The agent configures a launch command or HTTP URL; no changes to the LLM or client architecture are needed.

40+ Language Support via Language Servers

The default backend uses open-source language servers implementing the LSP protocol, covering Python, TypeScript, Go, Rust, Java, Kotlin, Ruby, PHP, C#, and over 35 other languages. Each language server is independently installed and free to use.

Memory System for Long-Lived Workflows

Serena includes a memory system that persists project context across agent sessions. Notes can be shared across users and projects, reducing warm-up cost on long-running tasks. It complements AGENTS.md-style files and can be disabled if you prefer a different setup.

Features

  • Symbol-Level Code Retrieval
  • Cross-File Refactoring
  • Symbolic Editing Without Line Numbers
  • MCP Integration Across Clients
  • 40+ Language Support via Language Servers
  • Memory System for Long-Lived Workflows

How to install

Serena is a Python package requiring Python 3.13. Install with pip or pipx and initialize the project configuration. pipx install serena-agent serena init

Recommended for this setup

Strengths

  • Works with Any MCP Client: Serena adds semantic capabilities to your existing AI client rather than replacing it. Claude Code, Codex, Cursor, JetBrains AI Assistant, and others all support MCP, so you do not need to switch tools or change your LLM workflow to gain symbol-level code operations.
  • 31,000+ Stars and Active Community: The repository has over 31,000 stars and 2,100+ forks as of late 2026, with an active Discord community. Language support across 40+ languages was built in large part by open-source contributors, an unusually wide footprint for an MCP server project.
  • No Cloud Dependency: Serena runs entirely locally. Code never leaves your machine during retrieval or refactoring operations. This matters for teams with IP restrictions or compliance requirements that prohibit sending code to third-party services.
  • GPL-3.0 Permits Commercial and Team Use: You can run Serena in a commercial setting, on internal infrastructure, without licensing fees. The GPL terms require releasing source of modified versions you distribute externally, but running it internally for your own team is unrestricted.

Trade-offs

  • Language Server Setup Requires Per-Language Installation: While Serena supports 40+ languages, the language servers themselves are separate installs. Some require language-specific toolchains: a working JVM for Java, a Rust toolchain for rust-analyzer, and so on. The Serena documentation lists each dependency, but initial setup on a multi-language project takes more than one uv command.
  • Advanced Refactoring Requires the Paid JetBrains Plugin: Move operations, inline refactoring, type hierarchy navigation, and interactive debugging are only available with the paid JetBrains plugin (free trial available). The free language server backend supports rename and symbolic editing, but the full refactoring surface needs a JetBrains IDE license and the plugin. Rider and CLion are explicitly not supported.
  • Active Issue Backlog Across Language Integrations: The repository carries 84 open issues. As a tool that integrates with many different language servers and clients, edge cases in language-specific behavior and client compatibility generate a steady volume of reports. Users on less common language stacks may encounter rough edges not present in well-tested languages like Python or TypeScript.

Tech stack

Languages
Python, JavaScript, HTML, CSS, AL, TypeScript, Elixir, Erlang, Nix, Vue, C++, Svelte, Lua, Ruby, Dart, Solidity, PowerShell, HCL, Shell, Zig, MATLAB, C, F#, Pascal, PHP, HLSL, Java, R, Dockerfile, Haskell, SystemVerilog, C#, Fortran, TeX, 1C Enterprise, Swift, Go, Clojure, Elm, Visual Basic .NET, Gleam, Haxe, Rust, Open Policy Agent, Astro, SCSS, CUE, Lean, Scala, QML, mIRC Script, Nextflow, Crystal, OCaml, Groovy, Kotlin, Ada, Luau, Perl, Dune, Julia, Wolfram Language, Cuda, Objective-C
Frameworks
Angular, Svelte, Vue
Databases
—
Tooling
—

FAQ

Does Serena work with Claude Code?

Yes. Claude Code supports MCP and can launch Serena as a local MCP server via a configured launch command. The Serena documentation covers the specific setup steps for Claude Code. Serena's evaluation suite was tested in part on Claude Code on a large Python codebase, where symbol-level tools reduced multi-step rename operations to single atomic calls.

What is the difference between the language server backend and the JetBrains plugin?

The language server backend uses open-source LSP servers and covers retrieval, diagnostics, rename, and symbolic editing across 40+ languages at no cost beyond the language servers themselves. The JetBrains plugin (paid, free trial available) adds deeper features: move, inline, propagate deletions, type hierarchy, project dependency search, and interactive debugging with breakpoints. The plugin requires IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm, RubyMine, or GoLand; Rider and CLion are not supported.

Is Serena free to use commercially?

Yes. The Serena application is licensed under GPL-3.0-or-later, which permits self-hosting and commercial use at no cost. You can run it on your own infrastructure for your team or in a commercial product. If you distribute a modified version externally, you must release those modifications under the same GPL terms. Running it internally or using it commercially without distribution carries no licensing obligation. The JetBrains plugin is a separate paid product with its own pricing.

Can I install Serena without uv?

uv is the only documented prerequisite and the officially supported install path. The README explicitly asks users not to install Serena via MCP or plugin marketplaces because those may contain outdated versions with suboptimal configuration. If you prefer not to use uv, you would need to refer to the source for alternative install paths, which the project does not officially document.

What programming languages does Serena support?

Using the language server backend, Serena supports over 40 languages, including Python, TypeScript, JavaScript, Go, Rust, Java, Kotlin, C#, C/C++, Ruby, PHP, Swift, Scala, Haskell, Lua, and Elixir, among others. The JetBrains plugin supports all languages and frameworks that JetBrains IDEs support, except for Rider (C#) and CLion (C/C++). Some languages require additional toolchain installation beyond uv; the Serena documentation covers these per-language prerequisites.

Similar tools

More in Engineers