DeepSource MCP Server
by sapientpants
What is DeepSource MCP Server
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 REST 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
Installation
From Source
- 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
From Docker
Pull and run the Docker image:
docker pull sapientpants/deepsource-mcp-server:latest
Integration with Claude Desktop
- Edit
claude_desktop_config.json
:- Open Claude Desktop
- Go to
Settings
->Developer
->Edit Config
- Add the following configuration to the
mcpServers
section:
{
"mcpServers": {
"deepsource": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DEEPSOURCE_API_KEY",
"-p",
"3000:3000",
"sapientpants/deepsource-mcp-server"
],
"env": {
"DEEPSOURCE_API_KEY": "your-deepsource-api-key"
}
}
}
}
- Restart Claude Desktop to apply the changes
To check MCP logs, use:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
Available Tools
The DeepSource MCP Server provides the following tools:
-
mcp_sonarqube_sonarqube_get_metrics
: Retrieve code metrics for a project- Parameters:
project_key
(required)metrics
(optional array of metric keys)
- Parameters:
-
mcp_sonarqube_sonarqube_get_issues
: Retrieve issues for a project- Parameters:
project_key
(required)severities
(optional array)types
(optional array)statuses
(optional array)impact_severities
(optional array)impact_software_qualities
(optional array)- And many more filtering options...
- Parameters:
-
mcp_sonarqube_sonarqube_get_quality_gate
: Retrieve quality gate status for a project- Parameters:
project_key
(required)
- Parameters:
-
mcp_sonarqube_sonarqube_list_projects
: List all projects- Parameters:
page
(optional)page_size
(optional)
- Parameters:
Development
Prerequisites
- Node.js 20 or higher
- pnpm 10.7.0 or higher
- Docker (for container builds)
Environment Variables
DEEPSOURCE_API_KEY
: Your DeepSource API key
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
Leave a Comment
Comments section will be available soon. Stay tuned!
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
Fetch
Web content fetching and conversion for efficient LLM usage
Playwright
A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.
puppeteer-mcp-server
Puppeteer
Browser automation and web scraping
Playwright Universal MCP
A universal Playwright MCP server for browser automation in containerized environments
MCP Server Playwright
MCP Server Playwright - A browser automation service for Claude Desktop
OneNote MCP Server
MCP server for browsing and interacting with OneNote web app using browser-use automation
Playwright
๐ Fetcher MCP - Playwright Headless Browser Server
MCP server for fetch web page content using Playwright headless browser.
MCP Browser
NeoForge Browser MCP server - used to test the frontend
Submit Your MCP Server
Share your MCP server with the community
Submit Now