DevAssist MCP Server
A production-ready MCP server for GitHub and competitive programming (Codeforces) that enables AI assistants to fetch user profiles, repository stats, contest history, and personalized problem recommendations.
README
π DevAssist MCP Server
A production-ready Python MCP Server for GitHub & Competitive Programming
π Live Cloud Deployment: DevAssist MCP Server is deployed and live on Render.com!
- Base URL & Health Check:
https://devassist-mcp-server.onrender.com/- SSE Endpoint:
https://devassist-mcp-server.onrender.com/sseYou can connect your Claude Desktop, Cursor, or VS Code client directly to the hosted Render server without running code locally, or run it locally on your own machine.
π Overview & Project Description
DevAssist MCP Server is a production-grade, asynchronous Model Context Protocol (MCP) server engineered to connect AI assistantsβsuch as Claude Desktop, Cursor, and VS Code Copilotβwith real-time developer workflows, GitHub repository intelligence, and competitive programming analytics.
π― Purpose & Core Capabilities
Modern AI coding agents often lack direct access to external developer platforms and competitive programming metrics. DevAssist MCP addresses this by providing two dedicated tools through standard MCP protocol interfaces (STDIO and Server-Sent Events / SSE):
- π
github_assistant: Provides comprehensive GitHub integration including user profile lookups, repository metadata, commit histories, code language composition breakdowns, active pull requests, issue tracking, contributor metrics, and release releases notes. - π
cp_assistant: Integrates with Codeforces to fetch user contest ratings, submission performance history, topic-based accuracy tracking, algorithmic weak-spot identification, and personalized practice problem recommendations based on rating level and weak tags.
Whether deployed locally or accessed via its live Render.com cloud endpoint (https://devassist-mcp-server.onrender.com/sse), DevAssist MCP enables LLMs to reason over live developer data dynamically.
β¨ Key Features
| Feature | Description |
|---|---|
| π Cloud Deployed | Live hosting on Render.com with full Server-Sent Events (SSE) support |
| π GitHub Integration | User profiles, repo info, commits, PRs, issues, statistics |
| π Codeforces Integration | Profiles, contest history, rating tracking, submissions |
| π§ Weak Topic Analysis | AI-powered identification of competitive programming weak areas |
| π‘ Smart Recommendations | Personalized problem suggestions based on skill gaps |
| β‘ Async Architecture | Non-blocking I/O with httpx for maximum performance |
| π Production Ready | Logging, error handling, type safety, comprehensive tests |
ποΈ Architecture
graph TD
A["π€ AI Agent<br/>(Claude / Cursor / VS Code)"] -->|MCP Protocol / SSE| B["π Live Render MCP Server / Local Server"]
B --> C["π github_assistant"]
B --> D["π cp_assistant"]
C --> E["GitHub Service Layer"]
D --> F["Codeforces Service Layer"]
E -->|httpx async| G["GitHub REST API v3"]
F -->|httpx async| H["Codeforces API"]
style A fill:#4A90D9,stroke:#2C5F99,color:#fff
style B fill:#6C3483,stroke:#4A235A,color:#fff
style C fill:#27AE60,stroke:#1E8449,color:#fff
style D fill:#E67E22,stroke:#CA6F1E,color:#fff
π Connecting to Claude Desktop (claude_desktop_config.json)
To use this MCP server in Claude Desktop, open or create your claude_desktop_config.json file.
π File Locations:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json(e.g.,C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.json) - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Option A: Use Live Render Deployment (Recommended)
Connect directly to the cloud-hosted server on Render.com using mcp-remote bridge:
{
"mcpServers": {
"devassist-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://devassist-mcp-server.onrender.com/sse"
]
}
}
}
Or if your version of Claude Desktop supports native SSE configuration:
{
"mcpServers": {
"devassist-mcp": {
"url": "https://devassist-mcp-server.onrender.com/sse"
}
}
}
Option B: Use Local Machine Execution
If you prefer to run the MCP server locally on your own machine:
{
"mcpServers": {
"devassist-mcp": {
"command": "python",
"args": ["C:/path/to/devassist-mcp/server.py"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
Note: Replace
C:/path/to/devassist-mcp/server.pywith the absolute path toserver.pyon your machine.
π» Other IDE Configurations
Cursor
Add to your Cursor MCP settings (.cursor/mcp.json):
Using Render Cloud Endpoint:
{
"mcpServers": {
"devassist-mcp": {
"url": "https://devassist-mcp-server.onrender.com/sse"
}
}
}
Using Local Python Script:
{
"mcpServers": {
"devassist-mcp": {
"command": "python",
"args": ["C:/path/to/devassist-mcp/server.py"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
VS Code (with Copilot)
Add to your VS Code settings:
{
"mcp": {
"servers": {
"devassist-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://devassist-mcp-server.onrender.com/sse"
]
}
}
}
}
π Prerequisites & Local Setup
Prerequisites
- Python 3.12+
- GitHub Personal Access Token (Generate here) β for higher rate limits
- pip or uv package manager
Option 1: Using uv (Recommended)
# Clone the repository
git clone https://github.com/Champion-2006/DevAssist-MCP-Server.git
cd DevAssist-MCP-Server
# Create virtual environment and install dependencies
uv venv
uv pip install -r requirements.txt
Option 2: Using pip
# Clone the repository
git clone https://github.com/Champion-2006/DevAssist-MCP-Server.git
cd DevAssist-MCP-Server
# Create virtual environment
python -m venv venv
# Activate virtual environment
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
βοΈ Local Configuration
-
Copy the environment template:
cp .env.example .env -
Edit
.envwith your settings:GITHUB_TOKEN=ghp_your_personal_access_token_here LOG_LEVEL=INFO TRANSPORT=stdio PORT=8000
Note: The GitHub token is optional but recommended. Without it, requests are limited to 60 API calls/hour. With a token, limit increases to 5,000 requests/hour.
π Running Local Standalone
STDIO Mode (Default)
python server.py
SSE Transport Mode
python server.py --sse
# or
TRANSPORT=sse PORT=8000 python server.py
π οΈ Tool Documentation
Tool 1: github_assistant
| Action | Description | Requires repository |
|---|---|---|
get_user_profile |
Get GitHub user profile | β |
get_user_repos |
List all public repositories owned by a user | β |
get_user_activity |
Get recent user activity (commits, PRs, stars) | β |
get_repo_info |
Get repository details | β |
get_latest_commits |
Get recent commits | β |
get_repo_stats |
Get repository statistics | β |
get_repo_languages |
Detailed programming language percentage breakdown | β |
get_repo_contributors |
Top code contributors to a repository | β |
get_latest_release |
Latest release version & release notes | β |
get_pull_requests |
Get pull requests | β |
get_issues |
Get repository issues | β |
Example β Get User Profile:
"Show me the GitHub profile of octocat"
{
"login": "octocat",
"name": "The Octocat",
"public_repos": 42,
"followers": 20000,
"location": "San Francisco"
}
Example β Get Repo Stats:
"What are the stats for octocat/Hello-World?"
{
"repository": "octocat/Hello-World",
"stars": 2500,
"forks": 450,
"language": "Python",
"open_issues": 12
}
Tool 2: cp_assistant
| Action | Description |
|---|---|
get_user_profile |
Get Codeforces rating and rank |
get_contest_history |
Past contest participation |
get_recent_submissions |
Recent problem submissions |
get_rating_history |
Rating changes over time |
analyze_weak_topics |
Identify weak problem areas |
recommend_problems |
Personalized problem suggestions |
Example β Analyze Weak Topics:
"Analyze the weak topics for Codeforces user tourist"
[
{
"tag": "geometry",
"total_attempts": 15,
"successful": 5,
"failed": 10,
"success_rate": 33.3
}
]
Example β Get Recommendations:
"Recommend practice problems for my Codeforces handle"
[
{
"name": "Theatre Square",
"rating": 1000,
"tags": ["math"],
"url": "https://codeforces.com/problemset/problem/1/A"
}
]
π§ͺ Testing
# Run all tests
pytest tests/ -v
# Run with coverage
pytest tests/ -v --cov=. --cov-report=term-missing
# Run specific test file
pytest tests/test_github_service.py -v
# Run specific test
pytest tests/test_codeforces_service.py::test_analyze_weak_topics -v
π Project Structure
devassist-mcp/
βββ server.py # MCP server entry point (STDIO & SSE)
βββ config.py # Pydantic settings
βββ .env.example # Environment template
βββ requirements.txt # Dependencies
βββ pyproject.toml # Project metadata & tool configs
βββ Dockerfile # Multi-stage Docker build
βββ .dockerignore # Docker build exclusions
βββ .gitignore # Git exclusions
βββ README.md # Comprehensive documentation
βββ tools/
β βββ github.py # GitHub MCP tool
β βββ cp.py # Codeforces MCP tool
βββ services/
β βββ github_service.py # GitHub API client
β βββ codeforces_service.py # Codeforces API client
βββ models/
β βββ github_models.py # GitHub Pydantic models
β βββ cp_models.py # Codeforces Pydantic models
βββ utils/
β βββ logger.py # Structured logging
β βββ exceptions.py # Custom exception hierarchy
βββ tests/
β βββ conftest.py # Shared test fixtures
β βββ test_github_service.py # GitHub service tests
β βββ test_codeforces_service.py # Codeforces service tests
β βββ test_github_tool.py # GitHub tool tests
β βββ test_cp_tool.py # Codeforces tool tests
βββ logs/ # Log files (auto-created)
π³ Deployment Guide
Render Deployment (Live Production)
This project is deployed live on Render.com as a Web Service running in SSE transport mode:
- Service Type: Web Service
- Build Command:
pip install -r requirements.txt - Start Command:
python server.py --sse - Environment Variables:
TRANSPORT:ssePORT:10000(or Render default)GITHUB_TOKEN:ghp_your_github_token
- Live URL:
https://devassist-mcp-server.onrender.com
π€ Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
Code Quality
# Format code
black .
# Lint
ruff check .
# Type check
mypy .
<div align="center">
Built with β€οΈ using Python, FastMCP, and httpx
</div>
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.