Skip to content
MCP server

RoselineMCP

Roslyn-based C# code navigation and surgical edits so agents read less source

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted
Runs
Locally
Version
4.0.1
Listing updated
2 days ago

About RoselineMCP

RoselineMCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

RoselineMCP is a .NET server that loads your solution with MSBuildWorkspace and answers structural questions with the compiler's own semantics, so references, overloads and generics resolve rather than being string-matched. Instead of reading whole files, an agent asks for a file's shape, a symbol's references, callers or implementers.

The project reports a median 85% fewer tokens per task (93% pooled) compared with reading the files, measured on its own source over 430 symbols, with weak cases published. One example: search_symbols on Program.cs went from 2,093 tokens to 120.

Edits are surgical, replacing, adding or deleting a member or renaming a symbol with a diff and preview by default. The write tools refuse an edit that would break the build. It runs over stdio through dnx RoselineMCP --yes and needs the .NET 10 SDK, or via a dotnet tool, Docker or an MCPB bundle.

Install

Run in a terminal

claude mcp add roseline-mcp -- dnx RoselineMCP --yes

Add to claude_desktop_config.json

{
  "mcpServers": {
    "roseline-mcp": {
      "command": "dnx",
      "args": [
        "RoselineMCP",
        "--yes"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "roseline-mcp": {
      "command": "dnx",
      "args": [
        "RoselineMCP",
        "--yes"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "roseline-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "RoselineMCP",
        "--yes"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "roseline-mcp": {
      "command": "dnx",
      "args": [
        "RoselineMCP",
        "--yes"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "roseline-mcp": {
      "command": "dnx",
      "args": [
        "RoselineMCP",
        "--yes"
      ]
    }
  }
}

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

search_symbols
Return the shape of a file or search symbols
find_references
Find exact references to a symbol
rename_symbol
Rename a symbol across the solution

What it does

Symbol navigation
Symbols, references, call graphs and type hierarchies from Roslyn.
Surgical edits
Member-level changes and solution-wide rename with unified diff.
Compile guard
Write tools refuse edits that break the build.
Analysis and fixes
Runs Roslyn analyzers and code fix providers.
Several install routes
dnx, dotnet tool, Docker or Claude Desktop bundle.

Good for

  • Find every caller of a method in a large solution
  • Rename a symbol safely across projects
  • Get a file's outline without reading its body
  • Apply analyzer fixes with a previewed diff

Pricing

Open source

Free, MIT-licensed

Prices change. Check atypical-consulting.github.io before you buy.

RoselineMCP FAQ

What does it need?

The .NET 10 SDK for dnx; Docker needs no host .NET.

Which clients are verified?

Claude Desktop, VS Code (Copilot/MCP) and Cursor.

Are edits applied immediately?

Preview is the default, and the compile guard blocks edits that break the build.

What licence?

MIT, per the README badge.

Is RoselineMCP free?

Yes. RoselineMCP is open source, so you can use and self-host it for free.

How do I add RoselineMCP to Claude Code?

Run this command in your terminal: claude mcp add roseline-mcp -- dnx RoselineMCP --yes

What are the best alternatives to RoselineMCP?

The closest alternatives to RoselineMCP are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to RoselineMCP

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools