Skip to content
MCP Shelf

Serena MCP Server

IDE-style "find symbol" and "edit symbol" for an agent, backed by language servers.

View on GitHub
  • Package checked
  • ★ 30.8K GitHub stars
  • 47.5K downloads a week
  • Last commit 28 Oct 2026

What is Serena?

Serena is an open-source MCP server that gives coding agents IDE-style tools, so they find, read and edit code by symbol through language servers or a JetBrains plugin.

Tools
3 (REPL)
Runs on
Your computer
Licence
GPL-3.0
GitHub stars
30.8K

Good for

  • Large codebases where reading whole files wastes context
  • Refactors that need every caller of a function
  • Pairing with a client that already has file access but no code intelligence

You'll need

  • uv, which installs Serena and the Python 3.13 it runs on
  • Language support for your project language (Serena downloads most servers itself)

Package checkedThe npm package called "serena" has no link to this project. Serena publishes to PyPI as serena-agent, and its README installs it with uv tool install, then starts it with the serena command, which is what this page does.

MCP Shelf take

We started Serena on our own test machine on 26 Oct 2026 and it answered with 3 tools. 2 of the 3 only read; the other 1 can change things. Every tool comes with a useful description, all of them say whether they change things, and the tool list costs about 700 tokens of context before you ask a thing. Other directories point at a package with the same name that belongs to someone else; the config on this page installs the real one. It sits 3rd of 21 in its category on our shelf by GitHub stars (30.8K, with 47.5K downloads a week).
MCP Shelf tests: numbers from our own runs, not the README · tested on 26 Oct 2026

What can Serena read and change?

It can read

  • Source files in the project you activate, through language servers or your JetBrains IDE
  • Its own memory notes saved in the project's .serena folder

It can change

  • Your code, when it replaces, inserts, renames or deletes symbols
  • Memory files it writes for later sessions
  • Shell commands, if its basic tools are switched on

Safer setup: Run it inside a git repository so every edit shows up in the diff, and leave the shell tool disabled when your client already has one.

Serena in more detail

Serena starts language servers for your project and exposes what they know: where a function is defined, who calls it, and the exact range of a class or method. The assistant can then read and edit by symbol instead of grepping and reading whole files.

On big repositories that saves a lot of context, and it makes edits land in the right place more often.

Made by
Oraios AI
Downloads
47.5K a week
Last commit
28 Oct 2026
Setup checked
28 Oct 2026
Page updated
28 Oct 2026

What's in the pod

What tools does Serena have?

We found 3 tools when we started it on 26 Oct 2026. 2 only read. The rest can change things, so keep your app's "ask before each tool call" setting on for them.

Changes things1 tool · Can create, edit, send or delete.

ToolWhat it is for
serena_replRuns Python with Serena's full toolkit loaded: find symbols and references, outline files, edit by symbol and refactor.

Only reads2 tools · Looks things up and changes nothing.

ToolWhat it is for
activate_projectPoints Serena at a codebase by name or folder so its language servers start indexing it.
initial_instructionsHands the agent Serena's how-to guide and a session id at the start of a chat.

Grouped and described by us. The README on GitHub lists the inputs each tool takes.

How clearly it describes its tools to your assistant

Tools with a description
3 of 3
Say if they change things
3 of 3
Context it takes, at least
~700 tokens

Every tool says whether it only reads or can change things, so a client can ask before the risky ones.

From the tool list it sent us. The token figure counts names, descriptions and input names; the full schemas your client loads add more.

How do I install Serena?

Install steps from the Serena README

The project's own instructions, copied from its README on GitHub on 28 Oct 2026 under its GPL-3.0 licence. They are the source of truth; the ready-made configs further down are built from them. The rest of the README is in the README tab.

Quick Start

Important: Do not install Serena via an MCP or plugin marketplace! They contain outdated and suboptimal installation commands.

Prerequisites. Serena is managed by uv, and installing uv is the only required prerequisite.

Install Serena. Serena is installed via uv as follows:

uv tool install -p 3.13 serena-agent

After successful installation, the command serena should be available in your shell.

Note: When using the language server backend, some additional dependencies may need to be installed to support certain languages; see the Language Support page for details.

Initialise Serena. To initialise Serena and verify that your setup works correctly, simply run:

serena init

By default, this will set up Serena to use the language server backend. To use the JetBrains backend instead, add the parameters -b JetBrains (see the JetBrains Plugin documentation page for additional usage details).
Either way, you should receive a success message indicating that Serena has been initialised successfully.

Configuring Your Client. To connect Serena to your preferred MCP client, you typically need to configure a launch command in your client. Follow the link for specific instructions on how to set up Serena for Claude Code, Codex, Claude Desktop, MCP-enabled IDEs and other clients (such as local and web-based GUIs).

Tip: While getting started quickly is easy, Serena is a powerful toolkit with many configuration options. We highly recommend reading through the user guide to get the most out of Serena.

Specifically, we recommend to read about ...

What you need first

  • uv, which installs Serena and the Python 3.13 it runs on
  • Language support for your project language (Serena downloads most servers itself)

Steps

  1. Install Serena with uv: uv tool install -p 3.13 serena-agent. This puts the serena command on your PATH.
  2. Run serena init once. It checks the install and sets up the language server backend; add -b JetBrains to use the JetBrains plugin instead.
  3. Connect your client. For Claude Code, serena setup claude-code writes the entry for you. For other clients, add the config below, which starts serena start-mcp-server.

Add Serena to your app

Pick your app for a ready-to-paste snippet and where it goes, built from the steps above.

Where it goes: Your terminal

Claude Code
claude mcp add --scope user serena -- serena start-mcp-server --context claude-code --project-from-cwd

Or run serena setup claude-code, which adds this entry for you. Serena opens whichever folder you start Claude Code in. If it times out on start, raise MCP_TIMEOUT, for example to 60000.

Checked against the project's own install docs on 28 Oct 2026: oraios/serena README, oraios.github.io/serena/02-usage/030_clients.html, oraios.github.io/serena/02-usage/050_configuration.html.

Did this work for you?

Projects change their install steps often. If Serena did not install, or something here no longer matches the project, tell us and we will check it against the README and fix the page.

New to this? See the setup guides for Claude Code, Cursor, Claude Desktop, VS Code, Codex and ChatGPT. If it will not start, test it in MCP Inspector and look up the error in Fixing MCP server errors.

Serena not working? Common fixes

Symbols are not found in some languages
A few languages need their language server installed separately. Check Serena's language support page for the one you use.
Installed from a marketplace and nothing works
The project warns that marketplace entries carry old commands. Install with uv tool install -p 3.13 serena-agent, then run serena init.
The agent ignores Serena and greps instead
Ask it to call initial_instructions first, or name the project so it activates Serena before searching.

How do I configure Serena?

Names are exactly as the project spells them. Required ones are marked.

SettingWhat it does
serena initConfig · requiredOne-off setup that checks your install and picks the backend. Add -b JetBrains to use the paid IDE plugin instead of language servers.
--contextCommand line flagTunes the tool set for where Serena runs. A coding harness like Claude Code needs fewer of its basic file tools than a plain chat app.--context claude-code
--projectCommand line flagOpens a project at launch so you can skip activate_project.--project /path/to/repo
--transportCommand line flagRun over stdio (default) or as an HTTP server you connect to by URL.--transport streamable-http
.serena/project.ymlConfigPer-project settings such as the languages to index and tools to hide. Created the first time a project is activated.

Serena FAQ

How do I install Serena?

Install uv, then run uv tool install -p 3.13 serena-agent and serena init, as the project's README says. That gives you a serena command, and your client starts the server with serena start-mcp-server. Avoid MCP marketplace entries: the project says their commands are out of date.

How do I add Serena to Claude Code?

After installing it, run serena setup claude-code, or add it yourself with claude mcp add --scope user serena -- serena start-mcp-server --context claude-code --project-from-cwd. The claude-code context hides tools that duplicate Claude Code's own file and shell tools.

Why does Serena only show 3 tools?

Serena 2 defaults to a REPL interface: one tool runs Python against Serena's whole toolkit (find symbols and references, outline files, edit and rename by symbol), plus tools for activating a project and reading its instructions. Set agent_interface to tools if you want one MCP tool per operation instead.

Is Serena free?

Yes with the language server backend, which is open source and covers over 40 languages. The JetBrains backend, which adds moves, inlining and debugging, is a paid IDE plugin with a free trial. Serena itself is GPL-3.0, and its SolidLSP layer is MIT.

Does Serena work with Cursor and VS Code?

Yes. Use the ide context and pass your project with --project, so Serena only adds its symbol tools and leaves file editing and the terminal to the IDE's own agent. Any MCP client can use it, including Codex, JetBrains Copilot and Claude Desktop.

Is Serena safe to run on my code?

It edits your source files when it replaces, inserts or renames symbols, and its REPL can run any Python the Serena process can. Use it inside a git repository so every change shows in the diff, and only mark projects as trusted when you need the extra features that unlocks.

Serena is installed but Claude ignores it. What now?

Recent Claude Code versions load tools lazily and often drift back to grep. The project ships reminder hooks (serena-hooks remind) for .claude/settings.json, and asking the agent to read Serena's initial instructions at the start of a session also helps.

Serena or Desktop Commander?

Serena makes an agent smarter about code: it reads and edits by symbol, which saves context on large repositories. Desktop Commander gives a chat app a terminal and file access. A coding agent that already has those usually wants Serena; Claude Desktop with no tools usually wants Desktop Commander first.

Serena README

This is the project's own README from oraios/serena, written by Oraios AI, and shared under its GPL-3.0 licence. We copied it on 28 Oct 2026, so the version on GitHub may be newer.

The IDE for Your Coding Agent


  • Serena provides essential semantic code retrieval, editing, refactoring and debugging tools that are akin to an IDE's capabilities, operating at the symbol level and exploiting relational structure.
  • It integrates with any client/LLM via the model context protocol (MCP).

Serena's agent-first tool design involves robust high-level abstractions, distinguishing it from approaches that rely on low-level concepts like line numbers or primitive search patterns.

Practically, this means that your agent operates faster, more efficiently and more reliably, especially in larger and more complex codebases.

Tip: Serena v2 with the new REPL-based agent interface has been released.
Learn more about the new interface and how to configure it.

Video

What Our "End Users" Say

While it is humans who download and set up Serena, our end users are essentially AI agents. As the ones actually applying Serena's tools, they are in the best position to evaluate Serena.

We crafted an unbiased evaluation prompt that leads the agent to perform ~20 routine coding tasks, representative of everyday development work, in order to estimate the value added by Serena's tools when used alongside its own built-ins.

Here's a one-sentence summary of what the agents had to say:

Opus 4.6 (high) in Claude Code on a large Python codebase:

"Serena's IDE-backed semantic tools are the single most impactful addition to my toolkit – cross-file renames, moves, and reference lookups that would cost me 8–12 careful, error-prone steps collapse into one atomic call, and I would absolutely ask any developer I work with to set them up."

GPT 5.4 (high) in Codex CLI on a Java codebase:

"As a coding AI agent, I would ask my owner to add Serena because it gives me the missing IDE-level understanding of symbols, references, and refactorings, turning fragile text surgery into calmer, faster, more confident code changes where semantics matter."

GPT 5.4 (medium) in Copilot CLI on a large, multi-language monorepo:

"As a coding agent, I’d absolutely ask my owner to add Serena because it makes me noticeably sharper and calmer on real code – especially symbol-aware navigation, cross-file refactors, and monorepo dependency jumps – while I still lean on built-ins for tiny text edits and non-code work."

Different agents in different settings independently converge on the same verdict.

Give your agent the tools it has been asking for and add Serena MCP to your client!

See our documentation for the full methodology and much more detailed evaluation results, or run your own evaluation on a project of your choice.

How Serena Works

Serena provides the necessary tools for coding workflows, but an LLM is required to do the actual work, orchestrating tool use.

Serena can extend the functionality of your existing AI client via the model context protocol (MCP). Most modern AI chat clients directly support MCP, including

  • terminal-based clients like Claude Code, Codex, OpenCode, or Gemini-CLI,
  • IDEs and IDE assistant plugins for VSCode, Cursor and JetBrains IDEs (Copilot, Junie, JetBrains AI Assistant, etc.),
  • desktop and web clients like Claude Desktop, Codex App, or OpenWebUI.

:tv: See also: Introduction to Serena in 5 Minutes (YouTube)

To connect the Serena MCP server to your client, you either

  • provide the client with a launch command that allows it to start the MCP server, or
  • start the Serena MCP server yourself in HTTP mode and provide the client with the URL.

See the Quick Start section below for information on how to get started.

Programming Language Support & Semantic Analysis Capabilities

Serena provides a set of versatile code querying and editing functionalities based on symbolic understanding of the code. Equipped with these capabilities, your agent discovers and edits code just like a seasoned developer making use of an IDE's capabilities would. Serena can efficiently find the right context and do the right thing even in very large and complex projects!

There are two alternative technologies powering these capabilities:

  • Language servers implementing the language server protocol (LSP) — the free/open-source alternative which is used by default.
  • The Serena JetBrains Plugin, which leverages the powerful code analysis and editing capabilities of your JetBrains IDE (paid plugin; free trial available).

You can choose either of these backends depending on your preferences and requirements.

Language Servers

Serena incorporates a powerful abstraction layer for the integration of language servers that implement the language server protocol (LSP). The underlying language servers are typically open-source projects or at least freely available for use.

When using Serena's language server backend, we provide support for over 40 programming languages, including Ada / SPARK, AL, Angular, Ansible, Astro, Bash, BSL, C#, C/C++, Clojure, Crystal, CUE, Dart, Deno, Elixir, Elm, Erlang, Fortran, F#, GDScript, Gleam, GLSL, Go, GraphQL, Groovy, Haskell, Haxe, HLSL, HTML, Java, JavaScript, JSON, Julia, Kotlin, LaTeX, Lean 4, Lua, Luau, Markdown, MATLAB, mSL, Nextflow, Nix, OCaml, Pascal, Perl, PHP, PowerShell, Python, QML, R, Rego, Ruby, Rust, Scala, SCSS / Sass / CSS, Solidity, Svelte, Swift, SystemVerilog, Terraform, TOML, TypeScript, VB.NET, Vue, WGSL, Wolfram Language, YAML, and Zig.

The Serena JetBrains Plugin

The paid Serena JetBrains Plugin (free trial available) leverages the powerful code analysis capabilities of your JetBrains IDE. The plugin naturally supports all programming languages and frameworks that are supported by JetBrains IDEs, including IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm, RubyMine, GoLand, and potentially others (Rider and CLion are unsupported though).

See our documentation page for further details and instructions on how to apply the plugin.

Features

Serena provides a wide range of tools for efficient code retrieval, editing and refactoring, as well as a memory system for long-lived agent workflows.

Given its large scope, Serena adapts to your needs by offering a multi-layered configuration system.

Details

Retrieval

Serena's retrieval tools allow agents to explore codebases at the symbol level, understanding structure and relationships without reading entire files.

Capability Language Servers JetBrains Plugin
find symbol yes yes
symbol overview (file outline) yes yes
find referencing symbols yes yes
search in project dependencies -- yes
type hierarchy -- yes
find declaration yes* yes
find implementations yes** yes
query external projects yes yes
diagnostics/inspections yes yes

*: Will generally not work for declarations in external dependencies.
**: Only available for some languages, limited by the language server functionality.

Refactoring

Without precise refactoring tools, agents are forced to resort to unreliable and expensive search and replace operations.

Capability Language Servers JetBrains Plugin
rename yes (only symbols) yes (symbols, files, directories)
move (symbol, file, directory) -- yes
inline -- yes
propagate deletions (remove unused code) -- yes

Symbolic Editing

Serena's symbolic editing tools are less error-prone and much more token-efficient than typical alternatives.

Capability Language Servers JetBrains Plugin
replace symbol body yes yes
insert after symbol yes yes
insert before symbol yes yes
safe delete yes yes

Interactive Debugging

Exclusive to the JetBrains plugin, Serena supports a highly general debugging tool, which allows an agent to set breakpoints, inspect variables, evaluate expressions and control execution flow via a persistent REPL-style interface.

Basic Features

Beyond its semantic capabilities, Serena includes a set of basic utilities for completeness. When Serena is used inside an agentic harness such as Claude Code or Codex, these tools are typically disabled by default, since the surrounding harness already provides overlapping file, search, and shell capabilities.

  • search_for_pattern – flexible regex search across the codebase
  • replace_content – agent-optimised regex-based and literal text replacement
  • list_dir / find_file – directory listing and file search
  • read_file – read files or file chunks
  • execute_shell_command – run shell commands (e.g. builds, tests, linters)

Memory Management

A memory system is elemental to long-lived agent workflows, especially when knowledge is to be shared across sessions, users and projects. Despite its simplicity, we received positive feedback from many users who tend to combine Serena's memory management system with their agent's internal system (e.g., AGENTS.md files). It can easily be disabled if you prefer to use something else.

Configurability

Active tools, tool descriptions, prompts, language backend details and many other aspects of Serena can be flexibly configured on a per-case basis by simply adjusting a few lines of YAML. To achieve this, Serena offers multiple levels of (composable) configuration:

  • global configuration
  • MCP launch command (CLI) configuration
  • per-project configuration (with local overrides)
  • execution context-specific configuration (e.g. for particular clients)
  • dynamically composable configuration fragments (modes)

Quick Start

Important: Do not install Serena via an MCP or plugin marketplace! They contain outdated and suboptimal installation commands.

Prerequisites. Serena is managed by uv, and installing uv is the only required prerequisite.

Install Serena. Serena is installed via uv as follows:

uv tool install -p 3.13 serena-agent

After successful installation, the command serena should be available in your shell.

Note: When using the language server backend, some additional dependencies may need to be installed to support certain languages; see the Language Support page for details.

Initialise Serena. To initialise Serena and verify that your setup works correctly, simply run:

serena init

By default, this will set up Serena to use the language server backend. To use the JetBrains backend instead, add the parameters -b JetBrains (see the JetBrains Plugin documentation page for additional usage details).
Either way, you should receive a success message indicating that Serena has been initialised successfully.

Configuring Your Client. To connect Serena to your preferred MCP client, you typically need to configure a launch command in your client. Follow the link for specific instructions on how to set up Serena for Claude Code, Codex, Claude Desktop, MCP-enabled IDEs and other clients (such as local and web-based GUIs).

Tip: While getting started quickly is easy, Serena is a powerful toolkit with many configuration options. We highly recommend reading through the user guide to get the most out of Serena.

Specifically, we recommend to read about ...

User Guide

Please refer to the user guide for detailed instructions on how to use Serena effectively.

Acknowledgements

A significant part of Serena, especially support for various languages, was contributed by the open source community. We are very grateful for the many contributors who made this possible and who played an important role in making Serena what it is today.

License

Serena is licensed per component: SolidLSP (src/solidlsp) under the MIT License, the Serena application (everything else) under GPL-3.0-or-later. Distributions combining both are as a whole subject to the GPL.

See LICENSE for the authoritative overview and the license documentation for the background. Contributions require acceptance of our CLA; see CONTRIBUTING.md.

Two peas, one chat

Chat with AI about Serena

Opens a chat primed with Serena’s README and setup docs from this page, or add it in Cursor to use its tools.

The Cursor button opens Cursor and asks before it adds the server. Fill in any keys it needs in Cursor’s MCP settings.

Peas in a pod

What are the alternatives to Serena?

How Serena lines up against its neighbours on the shelf. See every developer tools server.

  • SerenaThis pea

    IDE-style "find symbol" and "edit symbol" for an agent, backed by language servers.

    Tools
    3 (REPL)
    Runs on
    Your computer
    Licence
    GPL-3.0
    Stars
    30.8K
  • Context7

    Pulls current, version-specific library docs into the conversation.

    Tools
    2
    Runs on
    Your computer or hosted
    Licence
    MIT
    Stars
    63.8K
  • GitHub

    GitHub's own server for repos, issues, pull requests and Actions.

    Tools
    46
    Runs on
    Hosted or your computer
    Licence
    MIT
    Stars
    34K
  • MCP Inspector

    The official debugging UI for MCP servers. Not a server you add to a client.

    Tools
    Test client
    Runs on
    Your computer
    Licence
    MIT / Apache-2.0
    Stars
    11.2K
  • XcodeBuildMCP

    Build, run and test iOS and macOS apps, and drive simulators, from an agent.

    Tools
    24
    Runs on
    Your computer
    Licence
    MIT
    Stars
    6.5K
  • Peekaboo

    Screenshots of any Mac app or screen, with optional questions about what is on it.

    Tools
    4 groups
    Runs on
    Your computer
    Licence
    MIT
    Stars
    5.4K

Compared head to head: Desktop Commander vs Serena.

Full docs on GitHuboraios/serena

Something wrong on this page? Tell us.

For bots & AI agents

Machine-readable versions of Serena and MCP Shelf. Fetch these instead of parsing this page.

This listing (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs