DeepSource MCP Server
A Model Context Protocol (MCP) server that integrates with DeepSource to provide AI assistants with access to code quality metrics, issues, and analysis results.
Overview
The DeepSource MCP Server enables AI assistants to interact with DeepSource's code quality analysis capabilities through the Model Context Protocol. This integration allows AI assistants to:
- Retrieve code metrics and analysis results
- Access and filter issues
- Check quality status
- Analyze project quality over time
Features
- DeepSource API Integration: Connects to DeepSource via GraphQL API
- MCP Protocol Support: Implements the Model Context Protocol for AI assistant integration
- TypeScript/Node.js: Built with TypeScript for type safety and modern JavaScript features
- Cross-Platform: Works on Linux, macOS, and Windows
- Robust Error Handling: Comprehensive error handling for network, authentication, and parsing issues
Usage with Claude Desktop
- Edit
claude_desktop_config.json:
- Open Claude Desktop
- Go to
Settings->Developer->Edit Config - Add the one of the configurations below to the
mcpServerssection
- Restart Claude Desktop to apply the changes
Docker
{
"mcpServers": {
"deepsource": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DEEPSOURCE_API_KEY",
"sapientpants/deepsource-mcp-server"
],
"env": {
"DEEPSOURCE_API_KEY": "your-deepsource-api-key"
}
}
}
}
NPX
{
"mcpServers": {
"deepsource": {
"command": "npx",
"args": [
"-y",
"deepsource-mcp-server@1.0.2"
],
"env": {
"DEEPSOURCE_API_KEY": "your-deepsource-api-key"
}
}
}
}
Available Tools
The DeepSource MCP Server provides the following tools:
deepsource_projects: List all available DeepSource projects
- Parameters:
- No required parameters
deepsource_project_issues: Get issues from a DeepSource project
- Parameters:
projectKey(required) - The unique identifier for the DeepSource projectoffset(optional) - Number of items to skip for paginationfirst(optional) - Number of items to return (defaults to 10)after(optional) - Cursor for forward paginationbefore(optional) - Cursor for backward pagination
Development
- Clone the repository:
git clone https://github.com/sapientpants/deepsource-mcp-server.git
cd deepsource-mcp-server
- Install dependencies:
pnpm install
- Build the project:
pnpm run build
- Configure Claude Desktop
{
"mcpServers": {
"deepsource": {
"command": "node",
"args": [
"/path/to/deepsource-mcp-server/dist/index.js"
],
"env": {
"DEEPSOURCE_API_KEY": "your-deepsource-api-key"
}
}
}
}
Prerequisites
- Node.js 20 or higher
- pnpm 10.7.0 or higher
- Docker (for container builds)
Scripts
pnpm run build- Build the TypeScript codepnpm run start- Start the serverpnpm run dev- Start the server in development modepnpm run test- Run testspnpm run lint- Run ESLintpnpm run format- Format code with Prettier
License
MIT
DeepSource Server
Project Details
- sapientpants/deepsource-mcp-server
- MIT License
Categories
Recomended MCP Servers
An MCP (Model Context Protocol) server that integrates with the ArgoCD API, enabling agentic tools to manage ArgoCD...
A Model Context Protocol (MCP) server that enables AI assistants to interact with IDA Pro for reverse engineering...
MCP server that can execute commands such as keyboard input and mouse movement on macOS
A thin wrapper around the OpenPyXl Python library that exposes some of its features as Model Context Protocol...
An advanced MCP Server for accessing and analyzing clinical evidence data, with flexible search options to support precision...
A Model Context Protocol (MCP) server for intelligent code analysis and debugging using Perplexity AI’s API, seamlessly integrated...
Nautobot plugin that enables AI assistants to interact with network data through the Model Context Protocol (MCP).
Bringing the bankless onchain API to MCP
A Model Context Protocol server for Flux image generation, providing tools for image generation, manipulation, and control
A server that implements the MCP protocol to bring perplexity API into context.





