Granit.Mcp 1.0.0

Suggested Alternatives

Granit.Tools.Mcp

Additional Details

Move to Granit.Tools.Mcp

dotnet tool install --global Granit.Mcp --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Granit.Mcp --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Granit.Mcp&version=1.0.0
                    
nuke :add-package Granit.Mcp --version 1.0.0
                    

granit-mcp

GitHub NuGet Quality Gate Status License: Apache-2.0

Local MCP server for the Granit framework — gives AI assistants (Claude Code, Cursor, Windsurf) structured access to documentation, code navigation, and NuGet package metadata.

Built as a .NET 10 dotnet tool with SQLite FTS5 for full-text search and the Model Context Protocol SDK.

Tools (10)

Documentation

Tool Description
search_docs FTS5 search — returns ID, title, snippet
get_doc Full article content by ID
list_patterns Architecture patterns list

Code navigation

Tool Description
search_code Search symbols across .NET and TS
get_public_api Public API of a type with signatures
get_project_graph Project/package dependency graph
list_branches Branches with committed code indexes

NuGet packages

Tool Description
list_packages Granit.* packages with version/downloads
get_package_info Versions, deps, frameworks, license

Install

dotnet tool install --global Granit.Mcp

Use with Claude Code

{
  "mcpServers": {
    "granit": {
      "command": "granit-mcp"
    }
  }
}

Use with Cursor / Windsurf

Add the MCP server in Settings > MCP Servers:

  • Name: granit
  • Command: granit-mcp

Architecture

Claude Code ──stdio──> Granit.Mcp (local .NET 10 tool)
                         |-- Docs ---------> SQLite FTS5
                         |                     ^ llms-full.txt (auto-generated)
                         |-- Code ---------> .mcp-*-index.json (GitHub raw)
                         |-- NuGet --------> api.nuget.org
                         +-- Branches -----> api.github.com

Data sources

Source Origin Cache
Documentation granit-fx.dev/llms-full.txt SQLite (4h refresh)
.NET code index GitHub raw (branch-aware) In-memory (12h)
Front code index GitHub raw (branch-aware) In-memory (12h)
NuGet packages NuGet Search API In-memory (12h)
NuGet package info NuGet Registration API In-memory (6h)

Branch detection

The tool reads .git/HEAD from the current working directory and uses the detected branch for code index tools by default. Explicit branch parameter overrides this.

Development

dotnet build
dotnet run --project src/Granit.Mcp

ADRs

  • ADR-001 — JSON index + Cloudflare Workers (superseded)
  • ADR-002 — Code navigation & NuGet packages (superseded)
  • ADR-003 — Local .NET tool with SQLite FTS5

License

Apache-2.0

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 195 3/23/2026 1.0.0 is deprecated.