What it is
Serena is an agent toolkit that uses language servers to find and edit code by symbol. It also has file tools, a shell tool and project memories, and runs as an MCP server for coding agents.
- Maintainer
- Communityoraios on GitHub (organisation account, community project)
- Source
- oraios/serena31,994 GitHub stars · not stated on GitHub licence
- Transport
- stdio (default), HTTP (optional)
- Packages
- serena-agent pypi · latest 2.1.0 · 130,660 downloads last month
- Latest release
- v2.1.0 2026-10-19
- Public advisories
- 3GitHub and OSV, as of December 5, 2026
What it can do
Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.
- Reads: yes
- Writes: yes
- Deletes: yes
- Runs code: yes
- Network: no
- Sends: no
It edits your project directly and, with the shell tool on, can run any command your user can.
| Tool | What it can do | Notes |
|---|---|---|
execute_shell_command | Runs code | Runs shell commands, for example builds and tests. |
create_text_file | Writes | |
replace_content | Writes, Deletes | Regex or literal replace in a file. |
replace_in_files | Writes, Deletes | |
delete_lines | Deletes | |
replace_symbol_body | Writes, Deletes | |
rename_symbol | Writes | Renames across the code base. |
safe_delete_symbol | Deletes | |
write_memory | Writes | Writes a memory file in the project. |
delete_memory | Deletes | |
read_file | Reads | |
find_symbol | Reads | |
search_for_pattern | Reads | |
| JetBrains-backed tools 13 tools | Writes, Deletes | Only with the JetBrains plugin. JetBrainsRenameTool, JetBrainsMoveTool, JetBrainsDebugTool |
| Other read, navigation, memory and config tools 27 tools | Reads | Navigation, diagnostics and project management. get_symbols_overview, find_referencing_symbols, list_dir, find_file, read_memory, get_current_config |
Tool classes counted from src/serena/tools (53). Which tools load depends on your context, mode and config.
Credentials and least privilege
No credential for the core tools. Language servers it starts run as your user.
Public security advisories
Advisories published on GitHub or OSV for this project, as of December 5, 2026. Fixed issues are a normal part of a maintained project. What matters is that the version you run is not in an affected range.
| Advisory | Severity | Summary | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-pp25-4cg4-qcr9 | Critical | Server-Side Template Injection (SSTI) in mode/context prompt rendering → RCE on project activation, bypassing `trusted_project_path_patterns` | <= 1.6.1 | 1.7.0 |
| GHSA-pp6p-xvxf-8hhx | High | Remote Code Execution via insecure pickle deserialization of LSP symbol cache (malicious repository → RCE on project activation) | <= 1.7.1 | 2.0.0 |
| GHSA-37h2-6p4f-mp3q · CVE-2026-49471 | High | Unauthenticated Flask dashboard on fixed port enables DNS rebinding → memory poisoning → RCE | < v1.5.2 | v1.5.2+ |
What stands out
execute_shell_commandis listed in the README as a core tool.- GitHub lists 3 advisories, one critical and two high, fixed in 1.5.2 and later.
- The README's quick-start installs straight from the Git repo, which tracks a moving branch.
Safe-install checklist
Install command from the project's docs: uvx --from git+https://github.com/oraios/serena serena start-mcp-server.
- Pin the version. Use an exact version, not
latest:uvx serena-agent==2.1.0 (see the README for your client). The README's main command installs from the Git repo. Pin a commit or a PyPI version instead. - Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
- Use a pinned PyPI version or Git commit, not the moving repo head.
- Activate one project at a time. Deny
execute_shell_commandif your agent already has a shell, so you do not have two. - Deny the tools you do not need. In Claude Code, deny rules in
.claude/settings.jsonuse the formmcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named itserena:{ "permissions": { "deny": [ "mcp__serena__execute_shell_command", "mcp__serena__create_text_file", "mcp__serena__replace_content", "mcp__serena__replace_in_files", "mcp__serena__delete_lines", "mcp__serena__replace_symbol_body", "mcp__serena__rename_symbol", "mcp__serena__safe_delete_symbol" ] } } - Snapshot the tool list. Save the
tools/listoutput right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas. - Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.
For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?
Quick follow-ups
What can Serena do on my machine or accounts?
Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings; deletes or destroys data; runs commands, scripts or code. It edits your project directly and, with the shell tool on, can run any command your user can.
Does Serena need a token or API key?
No credential for the core tools. Language servers it starts run as your user.
Has Serena had public security advisories?
Yes. 3 public advisories (GitHub or OSV) listed for it as of December 5, 2026. Each one is linked on this page with its affected and fixed versions, so you can check the version you run. Fixed issues are normal for active projects. Running a current, pinned version is what matters.
How do I keep Serena from changing under me?
Pin the version, for example uvx serena-agent==2.1.0 (see the README for your client). Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.
Sources
This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.
