How to Use Serena MCP Server

Use the Serena MCP Server for free with Claude Code, Claude Desktop, or Cursor. This guide covers installation and setup to enhance your coding with AI, no subscriptions needed.

Ashley Goolam

Ashley Goolam

15 June 2026

How to Use Serena MCP Server

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

Hey there! Tired of shelling out cash for AI coding tools? Let’s talk about the Serena MCP Server, a free, open-source gem that turns your favorite LLM into a coding powerhouse, all without breaking the bank. Built by Oraios AI, Serena lets you code smarter with tools like Claude or open-weight models, and the best part? You can use it for free! In this guide, we’ll cover what Serena is, how to install it for a project with Claude Code, and how to set up the Serena MCP Server in Claude Desktop and Cursor. Let’s dive in and save you some subscription fees!

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

What Is the Serena MCP Server?

The Serena MCP Server is a free, open-source toolkit from Oraios AI that transforms any large language model (LLM) into a full-fledged coding agent. It uses the Model Context Protocol (MCP) and Language Server Protocol (LSP) to provide IDE-like features, such as semantic code analysis, symbol-level editing, and multi-language support (Python, JavaScript, Java, and more). Whether you’re refactoring code, analyzing large codebases, or prototyping, Serena handles it all—from planning to committing changes to version control.

Why’s it awesome? Serena was born out of frustration with pricey IDE subscriptions like Cursor or Windsurf and API-heavy tools like Claude Code or Cline. Oraios AI wanted a free alternative that works with LLMs you already have, like Anthropic’s Claude (even on the free tier!) or open-weight models via Agno. It’s their gift to the dev community, and they use it daily themselves. Plus, it’s MIT-licensed, so you can customize it to your heart’s content.

serena mcp server

Installing Serena in a Project with Claude Code

Let’s get the Serena MCP Server running in your project using Claude Code, a popular coding assistant that supports MCP servers for free. Here’s how to set it up:

Step 1: Install Prerequisites

  1. Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
# For windows users:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Or use Homebrew: brew install uv.

install uv

2. Clone Serena’s Repository:

git clone https://github.com/oraios/serena
cd serena
serena github project

3. Set Up Environment:

cp .env.example .env

Step 2: Configure Serena for Claude Code

  1. Start the MCP Server:
uv run serena start-mcp-server

This starts a local server with a web dashboard at http://localhost:24282/dashboard/index.html for logs and shutdown.

2. Add Serena to Claude Code:

claude mcp add-json "serena" '{"command":"uvx","args":["--from","git+https://github.com/oraios/serena","serena-mcp-server"]}'

This tells Claude Code to use Serena’s MCP server without local installation.

cluade code

3. Test It:

Analyze my Python codebase in ./src.
Refactor main.py to use async/await.

Troubleshooting

Using the Serena MCP Server in Claude Desktop

Claude Desktop is another great way to use the Serena MCP Server for free, leveraging Claude’s free tier. Here’s how to hook it up:

claude desktop

Step 1: Configure the MCP Server

  1. Run Serena’s MCP Server:
uv run serena start-mcp-server

Or use Docker (Experimental) for a cleaner setup:

docker run --rm -i --network host -v /path/to/your/projects:/workspaces/projects ghcr.io/oraios/serena:latest serena start-mcp-server --transport stdio

Replace /path/to/your/projects with your project’s absolute path.

2. Edit Claude Desktop Config:

{
  "mcpServers": {
    "serena": {
      "command": "/path/to/uv",
      "args": ["run", "--directory", "/path/to/serena", "serena-mcp-server"]
    }
  }
}

Replace /path/to/uv and /path/to/serena with actual paths (use double backslashes \\ on Windows).

add new mcp server to claude desktop

3. Restart Claude Desktop:

Step 2: Test Serena in Claude Desktop

  1. Start a Conversation:
Summarize my project in ./myproject.

2. Try Coding Tasks:

Fix bugs in src/app.js based on logs.

3. Check the Dashboard:

Tips

Using the Serena MCP Server in Cursor

Cursor is a slick AI-powered IDE, and you can use the Serena MCP Server with Cursor globally or per-project. Here’s how:

the cursor ide

Step 1: Set Up Serena’s MCP Server

  1. Start the Server:
uv run serena start-mcp-server

Or use the Docker command from the Claude Desktop section.

2. Configure Cursor Globally:

{
  "mcpServers": {
    "serena": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/oraios/serena", "serena-mcp-server"]
    }
  }
}

This makes Serena available across all Cursor projects.

add new mcp server to cursor

3. Or Configure Per-Project:

4. Restart Cursor:

Step 2: Test Serena in Cursor

  1. Open Cursor’s Chat Panel:
Generate a REST API in src/api.py.

2. Refactor Code:

Optimize this function for performance.

3. Check Logs:

Why Use the Serena MCP Server?

The Serena MCP Server is a lifesaver for developers fed up with subscription costs. Here’s why it rocks:

Users are buzzing about Serena, with some calling it “the strongest coding setup” when paired with Claude. Whether you’re a solo dev or on a team, Serena lets you cancel those pricey subscriptions and code smarter. Soon, ChatGPT Desktop might support MCP servers, expanding your options even more.

Beyond configuring Serena as your MCP context layer,setting up Cursor rules for consistent AI behavioris the next lever for locking in how the model responds across every file in your codebase.

Conclusion

The Serena MCP Server is your ticket to free, AI-powered coding with tools like Claude Code, Claude Desktop, and Cursor. From installing Serena to running it in your favorite editor, you’re now equipped to tackle coding tasks without subscription headaches. Give it a spin, explore its web dashboard, and let me know in the comments how you’re using Serena to supercharge your workflow!

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

Explore more

BFF vs API Gateway: What's the Difference and When to Use Each

BFF vs API Gateway: What's the Difference and When to Use Each

BFF vs API gateway, explained: BFF shapes data per frontend; a gateway centralizes auth, routing, and rate limiting. When to use one, both, or neither.

2 July 2026

What Is Backend for Frontend (BFF)?

What Is Backend for Frontend (BFF)?

Backend for Frontend (BFF) is a per-client backend that reshapes microservice data for one frontend. Learn the pattern, BFF vs gateway, and when to use it.

2 July 2026

Apidog vs ReqBin: Which API Client to Use?

Apidog vs ReqBin: Which API Client to Use?

Apidog vs ReqBin compared: browser-based quick tester vs full API platform. See install, collections, mocking, docs, testing, CI, and pricing differences.

2 July 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

How to Use Serena MCP Server