---
title: "Serena MCP Server: Code Navigation and Editing by Symbol"
url: "https://mcpshelf.co/servers/serena"
description: "Serena uses language servers to give an AI assistant symbol-level search and edits across your code. Install it as serena-agent (not the npm \"serena\")."
updated: "2026-10-28"
site: "MCP Shelf"
---

# Serena

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

Source: https://mcpshelf.co/servers/serena  
Markdown: https://mcpshelf.co/servers/serena.md  
Generated: 2026-11-24T05:11:38.365Z

## Facts

- **Name:** Serena
- **Tagline:** IDE-style "find symbol" and "edit symbol" for an agent, backed by language servers.
- **Description:** 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.
- **Repository:** https://github.com/oraios/serena
- **Install:** `claude mcp add --scope user serena -- serena start-mcp-server --context claude-code --project-from-cwd`
- **Transport:** stdio (local)
- **Auth:** Needs `serena init`
- **Tools exposed:** 3: `activate_project`, `initial_instructions`, `serena_repl`
- **Category:** Developer tools (https://mcpshelf.co/categories/developer-tools)
- **Stats:** 30.8K GitHub stars, 47.5K downloads a week, last commit 28 Oct 2026, 0 upvotes on MCP Shelf
- **Install check:** Package checked
- **Listed:** 2026-10-26
- **Page updated:** 2026-10-28

## Full description

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

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 |
| GitHub | https://github.com/oraios/serena |
| Licence | GPL-3.0 |
| GitHub stars | 30.8K |
| Downloads | 47.5K a week |
| Last commit | 28 Oct 2026 |
| Tools | 3 (REPL) |
| Runs on | Your computer |
| Install check | Package checked |
| Category | [Developer tools](https://mcpshelf.co/categories/developer-tools) |
| Works with | Claude Code, Cursor, Claude Desktop, VS Code, Codex, Windsurf |
| Setup checked | 28 Oct 2026 |
| Page updated | 28 Oct 2026 |

**Our check:** The 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.

#### Try asking Serena

- "Find every place that calls parseConfig and show me how each one uses the result."
- "Rename the class UserStore to AccountStore across the whole project."
- "Give me an overview of the symbols in src/server, then explain how a request flows through them."

#### 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 24 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), tested on 26 Oct 2026

### What tools does Serena have?

We listed 3 tools on 26 Oct 2026. 2 only read; the rest can change things or run commands.

| Tool | Kind | What it is for |
| --- | --- | --- |
| `activate_project` | reads | Points Serena at a codebase by name or folder so its language servers start indexing it. |
| `initial_instructions` | reads | Hands the agent Serena's how-to guide and a session id at the start of a chat. |
| `serena_repl` | changes | Runs Python with Serena's full toolkit loaded: find symbols and references, outline files, edit by symbol and refactor. |

#### How clearly it describes its tools

3 of 3 tools have a description and 3 of 3 say whether they change things. The tool list takes at least ~700 tokens of context. Every tool says whether it only reads or can change things, so a client can ask before the risky ones.

### How do I install Serena?

#### Install steps from the Serena README

Copied from the project's [README on GitHub](https://github.com/oraios/serena#readme) on 10 Nov 2026 under its GPL-3.0 licence.

##### 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](https://docs.astral.sh/uv/getting-started/installation/) 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](https://oraios.github.io/serena/01-about/020_programming-languages.html) 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](https://oraios.github.io/serena/02-usage/025_jetbrains_plugin.html) 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](https://oraios.github.io/serena/02-usage/030_clients.html).
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](https://oraios.github.io/serena/02-usage/000_intro.html) to get the most out of Serena.
> 
> Specifically, we recommend to read about ...
> 
> - [Serena's project-based workflow](https://oraios.github.io/serena/02-usage/040_workflow.html) and
> - [configuring Serena](https://oraios.github.io/serena/02-usage/050_configuration.html).

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

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.

#### Claude Code

Where: Your terminal

```bash
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.

#### Cursor

Where: ~/.cursor/mcp.json, or .cursor/mcp.json in a project

```json
{
  "mcpServers": {
    "serena": {
      "command": "serena",
      "args": [
        "start-mcp-server"
      ]
    }
  }
}
```

Add --context ide and --project with your project path to the args, so Serena skips the file and shell tools Cursor already has.

#### Claude Desktop

Where: claude_desktop_config.json (Settings → Developer → Edit Config)

```json
{
  "mcpServers": {
    "serena": {
      "command": "serena",
      "args": [
        "start-mcp-server"
      ]
    }
  }
}
```

Serena's docs add --context=desktop-app to the args for Claude Desktop, which keeps the full tool set. Start a chat by asking it to activate your project folder with Serena. If Claude cannot find serena, give the full path that which serena prints, since the app does not read your shell profile.

#### VS Code

Where: .vscode/mcp.json in your project

```json
{
  "servers": {
    "serena": {
      "type": "stdio",
      "command": "serena",
      "args": [
        "start-mcp-server"
      ]
    }
  }
}
```

Add --context ide and --project ${workspaceFolder} to the args, so Serena skips the file and shell tools Copilot already has.

#### Codex

Where: ~/.codex/config.toml, shared by the Codex CLI, IDE extension and ChatGPT desktop app

```
[mcp_servers.serena]
command = "serena"
args = ["start-mcp-server"]
```

Or run: `codex mcp add serena -- serena start-mcp-server`

#### Windsurf

Where: ~/.codeium/windsurf/mcp_config.json

```json
{
  "mcpServers": {
    "serena": {
      "command": "serena",
      "args": [
        "start-mcp-server"
      ]
    }
  }
}
```

#### ChatGPT

Where: Not supported

ChatGPT on the web only connects to servers by URL. This one runs on your computer: the ChatGPT desktop app can start it from its MCP servers settings, with the same config as the Codex tab.

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

### How do I configure Serena?

| Setting | Kind | Required | What it does |
| --- | --- | --- | --- |
| `serena init` | config | yes | One-off setup that checks your install and picks the backend. Add -b JetBrains to use the paid IDE plugin instead of language servers. |
| `--context` | flag | no | Tunes 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. Example: `--context claude-code` |
| `--project` | flag | no | Opens a project at launch so you can skip activate_project. Example: `--project /path/to/repo` |
| `--transport` | flag | no | Run over stdio (default) or as an HTTP server you connect to by URL. Example: `--transport streamable-http` |
| `.serena/project.yml` | config | no | Per-project settings such as the languages to index and tools to hide. Created the first time a project is activated. |

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

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

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

### What are the alternatives to Serena?

| Server | What it does | Tools | Runs on | Licence | Stars |
| --- | --- | --- | --- | --- | --- |
| [Serena](https://mcpshelf.co/servers/serena) | IDE-style "find symbol" and "edit symbol" for an agent, backed by language servers. | 3 (REPL) | Your computer | GPL-3.0 | 30.8K |
| [Context7](https://mcpshelf.co/servers/context7) | Pulls current, version-specific library docs into the conversation. | 2 | Your computer or hosted | MIT | 63.8K |
| [GitHub](https://mcpshelf.co/servers/github) | GitHub's own server for repos, issues, pull requests and Actions. | 46 | Hosted or your computer | MIT | 34K |
| [MCP Inspector](https://mcpshelf.co/servers/mcp-inspector) | The official debugging UI for MCP servers. Not a server you add to a client. | Test client | Your computer | MIT / Apache-2.0 | 11.2K |
| [XcodeBuildMCP](https://mcpshelf.co/servers/xcodebuildmcp) | Build, run and test iOS and macOS apps, and drive simulators, from an agent. | 24 | Your computer | MIT | 6.5K |
| [Peekaboo](https://mcpshelf.co/servers/peekaboo) | Screenshots of any Mac app or screen, with optional questions about what is on it. | 4 groups | Your computer | MIT | 5.4K |

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

#### Does Serena work with Codex?

Yes. Run codex mcp add serena -- serena start-mcp-server in a terminal, or add an [mcp_servers.serena] table to ~/.codex/config.toml, which the Codex CLI and IDE extension share.

Full docs on GitHub: https://github.com/oraios/serena

## Notes for agents

Fetch these instead of parsing the HTML page:

- llms.txt: https://mcpshelf.co/llms.txt
- llms-full.txt: https://mcpshelf.co/llms-full.txt
- ai.txt: https://mcpshelf.co/ai.txt
- Full catalog (.md): https://mcpshelf.co/catalog.md
- API spec: https://mcpshelf.co/openapi.json
- MCP server: https://mcpshelf.co/mcp
- MCP manifest: https://mcpshelf.co/.well-known/mcp.json
- Developer docs: https://mcpshelf.co/developers

MCP endpoint (Streamable HTTP, no key): https://mcpshelf.co/mcp. REST API: https://mcpshelf.co/api/v1.

