Skip to main content
Glama
devkamani9313-lab

open-source-contribution-mcp-server

πŸš€ Open Source Contribution MCP Server (open-source-contribution-mcp-server)

TypeScript Model Context Protocol License: ISC

An end-to-end Model Context Protocol (MCP) Server that enables AI clients (Claude Desktop, Cursor, AI agents) to autonomously discover, analyze, fix, test, submit, and track open-source contributions on GitHub.


🌟 Overview

Making your first (or 50th) open-source contribution can be intimidating: finding active repositories with open PR queues, understanding unwritten codebase conventions, passing strict linters, and avoiding silent CI failures.

This MCP server provides 12 specialized tools across 6 domain modules to automate the entire contribution lifecycle.


Related MCP server: mcp-oss-onramp

πŸ› οΈ Complete Tool Catalog (12 Tools)

πŸ‘€ 1. Skill & Preference Management Module

Allows AI clients to store and reference your tech stack, language proficiencies, and project preferences.

Tool Name

Parameters

Description

get_user_skills

None

Returns your stored tech stack, proficiency levels, and project preferences.

set_user_skills

skills, preferences

Overwrites your profile with new skills and preferences (saved to skills.json).

add_user_skills

skills

Appends new skills to your profile without clobbering preferences.

remove_user_skill

name

Removes a specific skill from your profile.

clear_user_skills

None

Resets your skill profile back to default settings.

πŸ” 2. Repository & Issue Discovery Module

Filters GitHub for high-confidence, active repositories with zero PR queues.

Tool Name

Parameters

Description

find_issues

query, languages, limit

Searches GitHub for open good first issue / help wanted issues in repos with active maintainers, low open PR queues, and recent commit activity.

πŸ“Š 3. Deep Repository Context & Analysis Module

Inspects repository rules, linters, and architectural patterns before writing code.

Tool Name

Parameters

Description

analyze_repo_context

repo, issueNumber

Reads target issue details, CONTRIBUTING.md, linter configs (ruff, eslint, line lengths), target source files, and test files.

πŸ› οΈ 4. Code & Test Generation Module

Synthesizes compliant source code patches and unit tests.

Tool Name

Parameters

Description

generate_code_fix

repo, issueNumber, instructions

Generates a compliant source fix obeying repository formatting & line length constraints.

generate_unit_tests

repo, issueNumber, targetFile, instructions

Synthesizes unit tests (with mock coverage) to verify the fix and prevent regressions.

πŸš€ 5. Automated Pull Request Module

Automates the complete GitHub Git workflow.

Tool Name

Parameters

Description

submit_pull_request

repo, branchName, title, body, files

Forks the repo, creates a branch, commits files, pushes to your fork, and submits a PR to upstream.

track_open_prs

repo, prNumber

Checks status, mergeability, CI workflow check runs, and merge state of a PR.

πŸ’¬ 6. Review Feedback & Iteration Module

Keeps PRs moving toward merge.

Tool Name

Parameters

Description

get_review_feedback

repo, prNumber

Pulls review comments (from maintainers & bots like Copilot) and failed CI step logs to guide single-try fixes.


πŸ” GitHub Personal Access Token (PAT) Setup

To allow the MCP Server to search repositories, inspect codebases, fork repos, and create pull requests, you need a GitHub Personal Access Token.

Step-by-Step Instructions:

  1. Go to GitHub Settings: GitHub Developer Settings > Personal Access Tokens (Classic)

  2. Click Generate new token (classic).

  3. Set a descriptive note: MCP Open Source Contribution Server.

  4. Select the following required scopes:

    • repo (Full control of private/public repositories β€” required for forking & creating PRs)

    • workflow (Update GitHub Action workflows β€” required if modifying workflow files)

    • user:email (Access user email addresses)

  5. Click Generate token and copy the generated token string (ghp_...).

  6. Store it in your .env file or environment variables:

GITHUB_TOKEN=ghp_your_personal_access_token_here

⚑ Installation & Setup

Prerequisites

  • Node.js: v18.0.0 or higher

  • npm or yarn or pnpm

  • Git installed on system path

1. Clone & Install Dependencies

git clone https://github.com/your-username/open-source-contribution-mcp-server.git
cd open-source-contribution-mcp-server
npm install

2. Configure Environment

Create a .env file in the root directory (or copy .env.example):

cp .env.example .env

Edit .env and add your GitHub Personal Access Token:

GITHUB_TOKEN=ghp_your_personal_access_token_here

3. Build the TypeScript Server

npm run build

πŸ”Œ Connecting to MCP Clients

A. Claude Desktop Integration

Add the server to your Claude Desktop configuration file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "open-source-contributions": {
      "command": "node",
      "args": [
        "C:/path/to/open-source-contribution-mcp-server/dist/index.js"
      ],
      "env": {
        "GITHUB_TOKEN": "ghp_your_personal_access_token_here"
      }
    }
  }
}

B. Cursor / Antigravity Integration (mcp_config.json)

{
  "mcpServers": {
    "open-source-contributions": {
      "command": "node",
      "args": [
        "C:/path/to/open-source-contribution-mcp-server/dist/index.js"
      ],
      "env": {
        "GITHUB_TOKEN": "ghp_your_personal_access_token_here"
      }
    }
  }
}

πŸ§ͺ Testing & MCP Inspector

You can inspect and test all 12 tools interactively using the official @modelcontextprotocol/inspector:

npm run inspector

This launches the interactive MCP web UI at http://localhost:5173.


πŸ† Real-World Battle-Tested Proof

This MCP server has been battle-tested on live open-source repositories:

  1. 🟣 mldsveda/PyScrappy PR #139 β€” MERGED TO main

    • Fixed a critical atomic file-saving bug (tempfile.mkstemp + os.replace()). Passed 100% of Python 3.9–3.13 unit tests and Ruff formatting.

  2. 🟒 fu351/Doberman-Core PR #345 β€” OPEN & PASSING CI

    • Retuned light-mode verdict badge colors to clear WCAG AA 4.5:1 text contrast with unit tests.


πŸ“„ License

Distributed under the ISC License. See LICENSE for more information.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    A production-ready MCP server that provides AI assistants with comprehensive GitHub developer tooling including PR analysis, code review, changelog generation, dependency auditing, commit summarization, and refactoring suggestions.
    17
    ISC
  • A
    license
    A
    quality
    B
    maintenance
    An MCP server that enables autonomous code development by pulling GitHub issues, fixing them in a sandboxed environment, running tests, opening PRs, and promoting to production upon human approval.
    3
    AGPL 3.0

View all related MCP servers

Related MCP Connectors

  • An MCP server that gives your AI access to the source code and docs of all public github repos

  • Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.

  • A MCP server built for developers enabling Git based project management with project and personal…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devkamani9313-lab/open-source-contribution-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server