Connect an agent with the MCP server
Documentation Index
Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt
Use this file to discover all available pages before exploring further.
Connect your coding agent to the Sourcery MCP server at https://mcp.sourcery.ai/mcp so it can request reviews and fix Sourcery’s review comments and security findings.
Connect
Section titled “Connect”claude mcp add --transport http -s user sourcery https://mcp.sourcery.ai/mcpThen run /mcp in Claude Code, select sourcery and choose Authenticate. Your client opens Sourcery in the browser to sign in.
codex mcp add sourcery --url https://mcp.sourcery.ai/mcpcodex mcp login sourceryYour client opens Sourcery in the browser to sign in.
Install in Cursor, or add this to ~/.cursor/mcp.json:
{ "mcpServers": { "sourcery": { "url": "https://mcp.sourcery.ai/mcp" } }}Your client opens Sourcery in the browser to sign in.
Install in VS Code, or add this to .vscode/mcp.json:
{ "servers": { "sourcery": { "type": "http", "url": "https://mcp.sourcery.ai/mcp" } }}Your client opens Sourcery in the browser to sign in.
Any client that supports remote MCP servers with OAuth can connect to https://mcp.sourcery.ai/mcp. Most read a config like this:
{ "mcpServers": { "sourcery": { "url": "https://mcp.sourcery.ai/mcp" } }}Your client opens Sourcery in the browser to sign in.
Try it
Section titled “Try it”Ask your agent:
- Request a Sourcery review of this pull request.
- Get Sourcery’s review of this pull request and fix the comments that are still open.
- Fix the critical and high security issues Sourcery found in this repository.
Every endpoint in the API reference is also a tool. The security tools need security scanning on the account.