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

8 August 2025

How to Use Serena MCP Server

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.

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

Which AI Coding Assistant Actually Makes You Code Faster in 2025

Which AI Coding Assistant Actually Makes You Code Faster in 2025

Compare Codex vs Claude Code vs Cursor vs Copilot in 2025. Discover which AI coding assistant delivers real productivity gains, advanced features, and seamless integration for developers seeking the ultimate coding companion.

22 September 2025

What Is Status Code: 303 See Other? The Form Submission Guardian

What Is Status Code: 303 See Other? The Form Submission Guardian

Discover what HTTP status code 303 See Other means, how it works, and when to use it. Learn its role in APIs, redirects, and workflows, plus test 303 behavior easily with Apidog.

22 September 2025

What is the Status Code: 302 Found?

What is the Status Code: 302 Found?

Learn what HTTP status code 302 Found means, how it works, and when to use it. Discover real-world examples, SEO implications, and API use cases. Test 302 redirects easily with Apidog.

22 September 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs