Skip to content
Skillpedia
βœ“ Official Β· Oraios● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

Serena MCP

Lets your AI agent find, edit and refactor code at the symbol level, like an IDE does.

31k stars on GitHubby OraiosLicense NOASSERTIONUpdated 26 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add serena -- uvx -p 3.13 start-mcp-server --project-from-cwd --context desktop-app serena-agent

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Find everywhere this function is used and rename it to a clearer name
Show me an outline of this file's classes and methods

What it is

Serena gives your coding agent IDE-style tools: it can find symbols, see who references them, rename them and replace or insert code, instead of working with line numbers and text search. It uses language servers for over 40 languages, or a paid JetBrains plugin. This helps agents work faster and more reliably in large codebases.

What it can do

  • Find a symbol and get a file outline
  • Find referencing symbols
  • Rename symbols across files
  • Replace a symbol body or insert code before or after it
  • search_for_pattern: regex search across the codebase
  • replace_content: regex or literal text replacement
  • list_dir / find_file: list folders and find files
  • execute_shell_command: run builds, tests or linters

When to use

  • β€ΊWhen you work in a large codebase and want safe cross-file renames
  • β€ΊWhen your agent wastes effort reading whole files to find one function
  • β€ΊWhen you want an agent with memory that persists across sessions

What you need

The uv tool installer. Install Serena with: uv tool install -p 3.13 serena-agent. The JetBrains plugin is optional and paid.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free?

The language server backend is free and open source and is used by default. The JetBrains plugin is paid, with a free trial.

Which languages are supported?

Over 40 with language servers, including Python, TypeScript, Java, Go, Rust, C#, PHP and Ruby.

Which clients work with it?

Claude Code, Codex, OpenCode, Gemini CLI, VS Code, Cursor, JetBrains assistants, Claude Desktop and others.

Should I install it from a marketplace?

The readme says not to. Marketplaces have outdated commands, so install with uv instead.

Does it have memory?

Yes. It has a memory system for long-lived workflows, and you can turn it off.

Can it debug?

Interactive debugging with breakpoints is exclusive to the JetBrains plugin.

If it does not work

  • β€ΊInstall uv first, then run the uv tool install command from the readme and check that the serena command works in your shell.
  • β€ΊDo not install through an MCP or plugin marketplace, as the readme warns they are outdated.
  • β€ΊRestart your MCP client fully after adding the launch command.

5 new skills a week. 1 minute to read.