Data as of

Serena for Claude Code: Setup & Config

Serena gives Claude Code symbol-aware retrieval, editing, refactoring, and debugging capabilities through MCP.

What you can do with Serena in Claude Code

Add symbol-aware IDE capabilities to coding agents instead of relying entirely on text search and edits.

  • Navigate a large project using symbols, references, and file outlines.
  • Debug interactively through the optional JetBrains backend.

Before you start: Serena in Claude Code

  • uv
  • An LLM client supporting MCP
  • Additional language-specific dependencies where required

This command installs Serena; it is not the client launch command. Next run serena init, then configure your MCP client using the linked client guide. The default backend uses language servers. A separately started HTTP server is also supported, but no endpoint is stated in this README.

Serena Claude Code configuration

  1. Choose Claude Code configuration scope

    For Serena, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.

  2. Add Serena to Claude Code

    Use the serena entry below in mcpServers. Keep Serena's documented stdio connection fields and your other Claude Code entries.

  3. Check Serena in Claude Code

    Serena: Inspect claude mcp list and /mcp status.

Config file · Project scope: .mcp.json at the repository root

JSON
{
  "mcpServers": {
    "serena": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "tool",
        "install",
        "-p",
        "3.13",
        "serena-agent"
      ],
      "env": {}
    }
  }
}

CLI (POSIX shell)
claude mcp add-json --scope project 'serena' '{"type":"stdio","command":"uv","args":["tool","install","-p","3.13","serena-agent"],"env":{}}'

Serena tools available to Claude Code

Serena's stored tool list documents 6 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.

search_for_pattern

For Serena's search_for_pattern, review the permission request and arguments in Claude Code before approval.

Search a codebase using regular expressions.

replace_content

For Serena's replace_content, review the permission request and arguments in Claude Code before approval.

Apply literal or regex-based text substitutions.

list_dir

For Serena's list_dir, review the permission request and arguments in Claude Code before approval.

find_file

For Serena's find_file, review the permission request and arguments in Claude Code before approval.

read_file

For Serena's read_file, review the permission request and arguments in Claude Code before approval.

Read complete files or selected portions.

execute_shell_command

For Serena's execute_shell_command, review the permission request and arguments in Claude Code before approval.

Serena: full stored tool descriptions

Troubleshooting Serena in Claude Code

  • Serena's uv tool install command installs a package, not a persistent MCP process. Confirm the upstream launch command before connecting Claude Code.
  • If Serena fails to start, check uv, the working directory, and Claude Code's selected scope; inspect claude mcp list and /mcp.
  • Known limitation: Semantic capabilities depend on the selected backend and language server.
  • Known limitation: Interactive debugging and several advanced refactorings require the paid JetBrains plugin.
  • Known limitation: Some languages need additional dependencies.
  • General Claude Code troubleshooting lives in the /clients/claude-code guide.

Serena — details. Claude Code guide

Frequently asked questions

Register Serena with the displayed claude mcp add-json --scope project command, or merge the JSON into .mcp.json at the repository root.