Skip to main content
The Raigal Model Context Protocol (MCP) server connects Raigal’s quality and pattern detection engines directly to coding agents and IDEs via npx --yes @methiu/raigal@latest mcp.

Prerequisites and authentication

Raigal MCP authenticates in one of two ways:
  • Local session: if you have already run raigal login on your machine, the MCP server detects your local credentials automatically without extra token configuration.
  • Environment variable: in headless environments or CI, provide your API token by setting RAIGAL_TOKEN=rgl_live_....

Client configuration

Run the setup command in your terminal:
With an explicit API token:

Available tools

Once connected, agents can call four tools:

Agent prompt instructions

To instruct coding agents to verify their work before finishing, add this snippet to AGENTS.md, CLAUDE.md, or your agent prompt: