Data as of

Serena for Cursor: Setup & Config

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

What you can do with Serena in Cursor

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

  • Preserve project knowledge across agent sessions with memory.
  • Debug interactively through the optional JetBrains backend.

Before you start: Serena in Cursor

  • 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 Cursor configuration

  1. Choose Cursor configuration scope

    For Serena, open Project: .cursor/mcp.json User: ~/.cursor/mcp.json. Merge into mcpServers at project or user scope.

  2. Add Serena to Cursor

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

  3. Check Serena in Cursor

    Serena: Enable in Cursor’s MCP settings; inspect tools.

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

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

Serena tools available to Cursor

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

search_for_pattern

Find search_for_pattern under Serena in Cursor's MCP settings; inspect its arguments when the agent requests a call.

replace_content

Find replace_content under Serena in Cursor's MCP settings; inspect its arguments when the agent requests a call.

list_dir

Find list_dir under Serena in Cursor's MCP settings; inspect its arguments when the agent requests a call.

find_file

Find find_file under Serena in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Locate files within a project.

read_file

Find read_file under Serena in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Read complete files or selected portions.

execute_shell_command

Find execute_shell_command under Serena in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Run shell tasks such as tests, builds, or linters.

Serena: full stored tool descriptions

Troubleshooting Serena in Cursor

  • Serena's uv tool install command installs a package, not a persistent MCP process. Confirm the upstream launch command before connecting Cursor.
  • Cursor must find uv for Serena. Enable the project/user entry in MCP settings and inspect its tools.
  • 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 Cursor troubleshooting lives in the /clients/cursor guide.

Serena — details. Cursor guide

Frequently asked questions

Cursor's Serena entry belongs under mcpServers in .cursor/mcp.json (project) or ~/.cursor/mcp.json (user). Confirm the active scope in MCP settings.