-
Start the server in development mode:
npm run dev
You should see:
GitHub Projects MCP Server running... -
The server is now listening on stdio for MCP commands.
-
Add to Claude Desktop configuration:
- On macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - On Windows:
%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "github-projects": { "command": "node", "args": ["/Users/devmoreno/MCP/Github-MCP/github-projects-mcp/dist/index.js"], "env": { "GITHUB_TOKEN": "your_github_token_here" } } } } - On macOS:
-
Restart Claude Desktop
-
Test by asking Claude to:
- "Use the github-projects MCP server to list my repositories' projects"
- "Get details about project #1 in repository owner/repo"
-
Install MCP inspector (if available):
npm install -g @modelcontextprotocol/inspector
-
Run the inspector:
mcp-inspector node dist/index.js
Once connected, you can test these operations:
-
List projects in a repository:
{ "tool": "list_projects", "arguments": { "owner": "octocat", "repo": "hello-world" } } -
Get organization projects:
{ "tool": "list_projects", "arguments": { "owner": "github", "projectsType": "organization" } } -
Get project details:
{ "tool": "get_project", "arguments": { "owner": "octocat", "repo": "hello-world", "projectNumber": 1 } }
-
"GITHUB_TOKEN environment variable is required"
- Make sure your
.envfile exists and contains a valid token - Token needs
repo,read:org, andprojectscopes
- Make sure your
-
"Project not found"
- Verify the owner/repo names are correct
- Check if your token has access to the repository
- Ensure the project number exists
-
GraphQL errors
- Check your token permissions
- Verify the API endpoint is accessible
- Look for rate limiting issues