# Serena

> Semantic code tools that turn your coding agent into an IDE

- Category: AI Coding / Autonomous Coding Agents
- Language: Python
- Licence: MIT
- Repository: https://github.com/oraios/serena
- Website: https://oraios.github.io/serena
- Canonical page: https://ai-tldr.dev/tools/serena/

## In short

Serena is Semantic code tools that turn your coding agent into an IDE. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in Python and licensed MIT. To get started: install Serena with uv.

## Overview

Serena is an open-source toolkit that gives your AI coding agent the kind of code understanding a developer gets from an IDE. Instead of treating source as plain text, it works at the symbol level, so the agent can find a function, list everything that references it, and edit it without reading whole files.

It connects to any LLM client through the Model Context Protocol (MCP). Terminal tools like Claude Code, Codex, and Gemini CLI, IDE assistants in VS Code, Cursor, and JetBrains, and desktop clients can all use Serena's tools. Serena supplies the tools; the LLM you already use does the actual reasoning and orchestration.

Under the hood, Serena relies on language servers (the free default backend) covering more than 40 programming languages, with an optional paid JetBrains plugin backend for deeper analysis. This lets an agent stay fast and reliable even in large, complex codebases.

## What it does

- Symbol-level code retrieval: find symbols, view file outlines, and locate every reference without loading entire files
- Precise refactoring and editing tools that replace fragile, error-prone search-and-replace operations
- Connects to any MCP-capable client (Claude Code, Codex, Gemini CLI, VS Code, Cursor, JetBrains, Claude Desktop, and more)
- Language-server backend with support for over 40 programming languages, used by default and fully open source
- Optional paid JetBrains plugin backend that reuses your IDE's code analysis for all JetBrains-supported languages
- A memory system for long-lived agent workflows, with a layered configuration system to adapt to your needs

## Getting started

Serena is managed by uv, so installing uv is the only prerequisite. After that you install the Serena agent, initialise it, then point your MCP client at it.

1. Install Serena with uv

   Install the Serena agent as a uv tool. Once it finishes, the serena command is available in your shell.

```bash
uv tool install -p 3.13 serena-agent
```

2. Initialise and verify your setup

   Run init to set up Serena and confirm everything works. By default this uses the open-source language server backend; add -b JetBrains to use the JetBrains plugin backend instead.

```bash
serena init
```

3. Connect your MCP client

   Configure a launch command for Serena's MCP server in your client (Claude Code, Codex, Claude Desktop, or an MCP-enabled IDE), or start the server in HTTP mode and give the client its URL. See the Serena docs for the exact per-client setup.

## When to use it

- Give a terminal coding agent like Claude Code or Codex IDE-grade navigation so cross-file renames, moves, and reference lookups become single reliable calls
- Help an agent work confidently in large or multi-language codebases by finding the right context at the symbol level instead of scanning whole files
- Perform safe refactors and edits driven by an LLM without relying on brittle text search-and-replace
- Add semantic code search and editing tools to MCP-enabled IDEs such as VS Code, Cursor, or JetBrains
