
github contribution server
一个用于与GitHub交互的Model Context Protocol (MCP) 服务器。
Repository Info
About This Server
一个用于与GitHub交互的Model Context Protocol (MCP) 服务器。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
GitHub Contribution Server (GCS)
A Model Context Protocol (MCP) server for interacting with GitHub.
Setup
-
Install dependencies:
npm install -
Create a GitHub Personal Access Token:
- Go to GitHub Settings > Developer Settings > Personal Access Tokens
- Click "Generate new token" (classic)
- Give it a meaningful name like "GitHub Contribution Server"
- Select the following scopes:
repo(Full control of private repositories)user(Read and write user profile data)
- Click "Generate token"
- Copy your token immediately! GitHub will only show it once.
-
Set up your environment variables:
- Copy the provided
.envfile template - Replace
your_github_token_herewith your actual token:
GITHUB_PERSONAL_ACCESS_TOKEN=your_actual_token_here - Copy the provided
-
Test your token:
npm run test-tokenYou should see a success message confirming that your token is working.
-
Build the server:
npm run build
Using the Server
This MCP server provides several GitHub operations:
Today's GitHub Contribution
Creates a new private repository for today's (${new Date().toISOString().split('T')[0]}) GitHub contribution.
Usage:
do_my_todays_github_contribution
Optional parameters:
prefix: Customize the repository name prefix (default is "daily-contribution")
Search Repositories
Search for GitHub repositories using GitHub's search syntax.
Usage:
search_repositories
query: "topic:typescript stars:>100"
page: 1
perPage: 10
File Operations
- Get file contents:
get_file_contents - Create or update a file:
create_or_update_file - Push multiple files:
push_files
Troubleshooting
If you encounter authentication errors:
- Check that your
.envfile exists and contains the correct token - Verify your token is valid using
npm run test-token - Ensure your token has the required scopes
- If your token has expired, generate a new one and update your
.envfile
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Quick Start
Clone the repository
git clone https://github.com/rohitnirban/github-contribution-serverInstall dependencies
cd github-contribution-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.