#Get started

Connect Metalama MCP to your agent.

A .NET tool and one line of agent configuration. Free and open source; your projects don't need to reference Metalama.

  1. Install the tool

    The server is the metalama-mcp .NET tool. It requires the .NET 10 SDK or later.

    dotnet tool install -g Metalama.Mcp

    Update it later with dotnet tool update -g Metalama.Mcp.

  2. Register it with your agent

    Claude Code

    Run this once to register the server for your user:

    claude mcp add metalama -- metalama-mcp

    Add --scope project to share the server with your team through the repository's .mcp.json.

    GitHub Copilot

    In Visual Studio Code, add the server to .vscode/mcp.json in your repository:

    {
      "servers": {
        "metalama": { "type": "stdio", "command": "metalama-mcp" }
      }
    }

    Cursor

    Add the server to .cursor/mcp.json in your repository:

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

    Other agents

    Any agent that supports MCP over standard input and output works. Point its MCP configuration at the command:

    metalama-mcp
  3. Start the agent from your repository

    The server resolves relative paths against its working directory, so start the agent in the folder that holds your solution.

  4. Trust the development certificate (optional)

    The interactive browser view runs over HTTPS on localhost. Trust the .NET development certificate once:

    dotnet dev-certs https --trust
  5. Ask your first questions

    • Load src/MyApp.sln.
    • Which types implement IRepository, including through a base class?
    • Where is OrderService used, and how? Show me the list in my browser.
    A query result opened as a sortable grid in the browser

    The result opens in your browser as an interactive grid: sort, filter, expand declarations and jump to the source.

Configuration and troubleshooting

Every option is in the Metalama documentation.

Using the MCP server