Basic information
About Serena MCP Server
Serena is a free AI code generator toolkit providing robust code editing and retrieval, turning LLMs into powerful artificial intelligence code generators.
Serena is a MCP server in the Other category listed in the AddMCP.net directory, published by oraios. It exposes 3 tools, including Cursor, Codex, Refactoring. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 26,170 GitHub stars. Source code is hosted on github.com. Related topics: agent, ai, ai-coding, claude, claude-code.
Setup
{
"mcpServers": {
"serena": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/oraios/serena",
"serena-mcp-server",
"--context",
"ide-assistant"
]
}
}
}
{
"mcpServers": {
"serena": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/oraios/serena",
"serena-mcp-server",
"--context",
"ide-assistant"
]
}
}
}
{
"servers": {
"serena": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/oraios/serena",
"serena-mcp-server",
"--context",
"ide-assistant"
]
}
}
}
Serena MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"serena": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/oraios/serena",
"serena-mcp-server",
"--context",
"ide-assistant"
]
}
}
}
Serena MCP Server tools
- Cursor
- Codex
- Refactoring — rename symbols with language servers. Move, inline and removing unused code need the JetBrains plugin.
Overview
What is Serena?
Serena MCP is an open-source coding agent toolkit from Oraios that gives AI agents IDE-like semantic code retrieval, editing, refactoring and debugging tools, working at the symbol level instead of line numbers or plain text search.
Serena connects to any MCP client, such as Claude Code, Codex, Cursor, VS Code or Claude Desktop. Its analysis comes from one of two backends: free, open-source language servers (LSP, the default, covering 40+ languages) or the paid Serena JetBrains Plugin, which uses your JetBrains IDE's own code analysis (free trial available). The project describes itself as "the IDE for your coding agent", and it pays off most in large, complex codebases.
How to use Serena?
The only prerequisite is uv. The maintainers advise against installing Serena through MCP or plugin marketplaces, which they say carry outdated install commands. Install and initialise it from your shell:
uv tool install -p 3.13 serena-agent
serena init
serena init sets up the language server backend by default. Add -b JetBrains to use the JetBrains plugin backend instead. Some languages need extra language-server dependencies (see the Language Support page in the docs).
Claude Code
The quickest route is serena setup claude-code. To add it by hand for all projects:
claude mcp add --scope user serena -- serena start-mcp-server --context claude-code --project-from-cwd
Or for the current project only:
claude mcp add serena -- serena start-mcp-server --context claude-code --project "$(pwd)"
Run /mcp to confirm the connection. If Serena starts too slowly, raise MCP_TIMEOUT (for example export MCP_TIMEOUT=60000). The docs also offer optional serena-hooks commands that remind the agent to use Serena's tools during long sessions.
Claude Desktop
Open File / Settings / Developer / MCP Servers / Edit Config and add:
{
"mcpServers": {
"serena": {
"command": "serena",
"args": ["start-mcp-server", "--context=desktop-app"]
}
}
}
Fully quit Claude Desktop (File / Exit) and reopen it.
VS Code
Run MCP: Add Server, pick Command (stdio) and enter serena start-mcp-server --context=vscode (global) or serena start-mcp-server --context=vscode --project ${workspaceFolder} (workspace).
Cursor
The docs have no Cursor-specific page. For MCP-enabled IDEs like Cursor, Windsurf, Cline and Roo Code, they suggest adding the serena start-mcp-server launch command with --context ide to reduce tool duplication.
Codex
Run serena setup codex, or add to ~/.codex/config.toml:
[mcp_servers.serena]
startup_timeout_sec = 15
command = "serena"
args = ["start-mcp-server", "--project-from-cwd", "--context=codex"]Key features of Serena
- Symbol-level retrieval: find symbols, file outlines, referencing symbols, declarations and implementations.
- Symbolic editing: replace a symbol body, insert before or after a symbol, and safe delete.
- Refactoring: rename symbols with language servers. Move, inline and removing unused code need the JetBrains plugin.
- Interactive debugging (JetBrains plugin only): breakpoints, variable inspection and expression evaluation through a persistent REPL.
- Over 40 languages with the free LSP backend, including Python, TypeScript, Java, Go, Rust, C/C++ and C#.
- A memory system for long-lived agent workflows that can be combined with files such as
AGENTS.md, or turned off. - Layered YAML configuration (global, CLI, per project, per context and modes) to pick the active tools and prompts.
- Serena v2 adds an optional REPL interface, where the agent runs Python against Serena's APIs to combine several operations in one call.
Serena tools
Only a subset of tools is active in any configuration, chosen mainly by the --context you start Serena with.
- Symbol tools:
find_symbol,get_symbols_overview,find_referencing_symbols,find_declarationandfind_implementationsfor navigation.replace_symbol_body,insert_after_symbol,insert_before_symbol,rename_symbolandsafe_delete_symbolfor edits.get_diagnostics_for_filereturns diagnostics grouped by symbol. - JetBrains tools (optional):
jet_brains_move,jet_brains_inline_symbol,jet_brains_type_hierarchy,jet_brains_run_inspectionsandjet_brains_debug. - File and shell tools:
read_file,list_dir,find_file,search_for_pattern,replace_contentandexecute_shell_command. These are usually off inside harnesses like Claude Code that already have such tools. - Memory tools:
write_memory,read_memory,list_memories,edit_memoryanddelete_memory. - Workflow and config tools:
activate_project,onboarding,initial_instructionsandget_current_config.
Use cases of Serena
- Navigate a large codebase by symbols: "Find every caller of
parse_configand summarise how each one handles errors." - Make a cross-file rename in one atomic step instead of many search-and-replace edits.
- Rewrite a single function: "Replace the body of
UserService.createto validate the email first." - Follow dependencies across a multi-language monorepo with reference lookups.
- Debug with the JetBrains plugin: set breakpoints, step through code and inspect variables from the agent.
- Keep project notes between sessions with Serena's memories, or start a new repo with "Activate the current dir as project using serena."
Frequently asked questions
1 Is Serena MCP free?
Yes. The Serena application is open source under GPL-3.0-or-later (its SolidLSP component is MIT), and the default language server backend is free. Only the optional JetBrains plugin is paid, with a free trial.
2 Who maintains the Serena MCP server?
Oraios maintains Serena, with much of the language support contributed by the open-source community. The official repository is oraios/serena.
3 Does Serena work with Claude Code, Cursor and VS Code?
Yes. The docs give commands for Claude Code, VS Code, Codex, Claude Desktop, JetBrains assistants and others. Cursor uses the generic launch command, preferably with --context ide.
4 Do I need an API key?
No. Serena runs locally and needs no API key. The LLM is provided by your MCP client.
5 Which programming languages does Serena support?
With language servers, over 40 languages, including Python, Java, TypeScript, Go, Rust, C/C++, C#, PHP, Ruby and Kotlin. With the JetBrains plugin, any language your JetBrains IDE supports, except in Rider and CLion.
6 Can Serena run as a remote HTTP server?
Yes. You can start the Serena MCP server yourself in HTTP mode and give your client the URL, instead of letting the client launch it over stdio.
7 Is the Serena coding agent safe to use?
Serena can run shell commands and modify files. Its security model assumes your machine, client, repository and configuration are trusted, and the maintainers say sandboxing is the only way to fully guard against unintended actions.
8 Why should I not install Serena from an MCP marketplace?
The README warns that marketplace listings contain outdated install commands. Use uv tool install -p 3.13 serena-agent and the client commands from the official docs instead.
Videos
Tutorials, guides, and showcases related to Serena MCP Server. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In