The GitHub API Integration for Model Context Protocol is a server implementation designed to integrate GitHub's API with the Model Context Protocol (MCP). This project enables seamless interaction with GitHub repositories, providing functionalities such as repository search and data retrieval.
The configuration files for the MCP server are located in the following paths:
~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
~/Library/Application Support/Claude/claude_desktop_config.json
For macOS users utilizing Volta, the following configuration is recommended:
{
"mcpServers": {
"github.com/modelcontextprotocol/servers/tree/main/src/github": {
"command": "/Users/username/.volta/bin/npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
},
"disabled": false,
"autoApprove": []
}
}
}
Direct node
Command Usage:
json
{
"command": "node",
"args": [
"/path/to/server-github/build/index.js"
]
}
Error: spawn node ENOENT
Using volta
Command:
json
{
"command": "/Users/username/.volta/bin/volta",
"args": [
"run",
"node",
"/path/to/server-github/build/index.js"
]
}
Error: Connection timeout
Using the full path to Volta's npx
resolves the issue:
{
"command": "/Users/username/.volta/bin/npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
]
}
To verify that the server is correctly configured, try the following operation:
// Repository Search
{
"query": "modelcontextprotocol",
"page": 1,
"perPage": 5
}
If the results are returned successfully, the configuration is correct.
This project is an MCP server implementation for integrating GitHub's API, providing essential functionalities for repository interaction.
This project is licensed under the MIT License.
No releases have been published yet.
No packages have been published yet.