Serena LSP MCP Server
Semantic code intelligence via Language Server Protocol - navigate symbols, find references, track type hierarchies, and perform targeted code reads. Gives Claude Code deep understanding of your codebase structure without reading every file.
MCP Server Configuration
{ "mcpServers": { "serena": { "command": "uvx", "args": [ "serena", "--workspace", "/path/to/your/project" ] } } }
Available Tools
| Tool | Description |
|---|---|
find_symbol | Find symbols (functions, classes, variables) by name |
get_symbol_definition | Jump to the definition of a symbol |
find_references | Find all references to a symbol across the codebase |
get_hover_info | Get type information and documentation for a symbol |
get_diagnostics | Get current errors and warnings from the language server |
read_range | Read a specific range of lines from a file |
get_document_symbols | List all symbols defined in a file |
get_type_hierarchy | Show type hierarchy (supertypes/subtypes) |
get_call_hierarchy | Show incoming/outgoing calls for a function |
Supported Languages
- TypeScript/JavaScript: via
typescript-language-server - Python: via
pylsporpyright - Rust: via
rust-analyzer - Go: via
gopls - Java: via
jdtls - C/C++: via
clangd
Setup
- Install
uvx(comes withuv):curl -LsSf https://astral.sh/uv/install.sh | sh - Ensure the relevant language server is installed for your project
- Replace
/path/to/your/projectwith your actual project root - Serena auto-detects the project language and launches the appropriate LSP
Why Use Serena?
- Precise navigation: Find exact definitions instead of grep-based guessing
- Type awareness: Understand interfaces, generics, and type hierarchies
- Refactoring support: Find all references before renaming or removing code
- Error detection: Surface compile-time errors without running the build
- Efficient context: Read only the relevant code ranges instead of entire files
Security Notes
- Runs locally - no code leaves your machine
- Read-only access to your codebase (no file modifications)
- Language servers may download type definitions or dependencies
- Workspace path determines the scope of code analysis
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
Database MCP Integration
MCP server configuration for connecting Claude Code to PostgreSQL, MySQL, and MongoDB databases. Enables schema inspection, query building, and migration generation.
Elevenlabs Server
Streamline your workflow with this official, elevenlabs, text, speech. Includes structured workflows, validation checks, and reusable patterns for audio.
Browser Use Portal
Powerful mcp for server, enables, agents, control. Includes structured workflows, validation checks, and reusable patterns for browser_automation.