Integration · MODEL CONTEXT PROTOCOL
mcollina mcp github notifications
An MCP server for the github notifications API for the OSS maintainer
连接能力
mcollina mcp github notifications 为 AI Agent 提供什么
- List and filter your GitHub notifications
- Mark notifications as read
- View notification thread details
- Subscribe or unsubscribe from notification threads
- Mark threads as done
- Manage repository-specific notifications
- Control repository notification settings (all activity, default, or mute)
- Node.js 18 or higher
- GitHub Personal Access Token (classic) with `notifications` or `repo` scope
- Clone this repository
- Install dependencies
- Build the project
- Create a `.env` file with your GitHub token
- "Can you check my GitHub notifications?"
- "Show me my unread notifications from the last 24 hours."
- "Mark all my notifications as read."
- "Can you tell me about notification thread 12345?"
- "Unsubscribe me from thread 12345."
- "What notifications do I have for the octocat/Hello-World repository?"
- "Mark all notifications from the octocat/Hello-World repository as read."
- "Watch all activity on the octocat/Hello-World repository."
- "Set the octocat/Hello-World repository to default settings (participating and @mentions)."
- "Check my notification settings for the octocat/Hello-World repository."
- "Mute all notifications from the octocat/Hello-World repository."
- API URL: `https://api.github.com/repos/nodejs/node/pulls/57557`
- Converted to: `https://github.com/nodejs/node/pull/57557`
- Domain conversion from `api.github.com/repos` to `github.com`
- Path correction for pull requests (changing `pulls` to `pull`)
- Preservation of additional path segments
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
An MCP (Model Context Protocol) server that provides tools for managing GitHub notifications. This server allows AI assistants like Claude to help you manage your GitHub notifications through natural language commands.
- List and filter your GitHub notifications
- Mark notifications as read
- View notification thread details
- Subscribe or unsubscribe from notification threads
- Mark threads as done
- Manage repository-specific notifications
- Control repository notification settings (all activity, default, or mute)
- Node.js 18 or higher
- GitHub Personal Access Token (classic) with
notificationsorreposcope
-
Clone this repository
git clone https://github.com/yourusername/github-notifications-mcp-server.git cd github-notifications-mcp-server -
Install dependencies
npm install -
Build the project
npm run build -
Create a
.envfile with your GitHub tokenGITHUB_TOKEN=your_github_personal_access_token_here
npm start
Add the server to your claude_desktop_config.json file:
{
"mcpServers": {
"github-notifications": {
"command": "node",
"args": ["/absolute/path/to/github-notifications-mcp-server/build/index.js"],
"env": {
"GITHUB_TOKEN": "your_github_personal_access_token_here"
}
}
}
}| Tool Name | Description |
|---|---|
list-notifications |
List all GitHub notifications for the authenticated user |
mark-notifications-read |
Mark all notifications as read |
get-thread |
Get information about a notification thread |
mark-thread-read |
Mark a specific thread as read |
mark-thread-done |
Mark a thread as done |
get-thread-subscription |
Get subscription status for a thread |
set-thread-subscription |
Subscribe to a thread |
delete-thread-subscription |
Unsubscribe from a thread |
list-repo-notifications |
List notifications for a specific repository |
mark-repo-notifications-read |
Mark notifications for a repository as read |
manage-repo-subscription |
Manage repository subscriptions: all_activity, default (participating and @mentions), or ignore (mute) |
Here are some example prompts you can use with Claude Desktop once the server is connected:
- "Can you check my GitHub notifications?"
- "Show me my unread notifications from the last 24 hours."
- "Mark all my notifications as read."
- "Can you tell me about notification thread 12345?"
- "Unsubscribe me from thread 12345."
- "What notifications do I have for the octocat/Hello-World repository?"
- "Mark all notifications from the octocat/Hello-World repository as read."
- "Watch all activity on the octocat/Hello-World repository."
- "Set the octocat/Hello-World repository to default settings (participating and @mentions)."
- "Check my notification settings for the octocat/Hello-World repository."
- "Mute all notifications from the octocat/Hello-World repository."
This server automatically converts GitHub API URLs to their corresponding web UI URLs. For example:
- API URL:
https://api.github.com/repos/nodejs/node/pulls/57557 - Converted to:
https://github.com/nodejs/node/pull/57557
The conversion handles:
- Domain conversion from
api.github.com/repostogithub.com - Path correction for pull requests (changing
pullstopull) - Preservation of additional path segments
github-notifications-mcp-server/
├── src/ # Source code
│ ├── tools/ # Tool implementations
│ ├── types/ # Type definitions
│ ├── utils/ # Utility functions
│ ├── index.ts # Entry point
│ └── server.ts # Server configuration
├── build/ # Compiled JavaScript
├── .env # Environment variables
├── package.json # Dependencies
├── tsconfig.json # TypeScript configuration
└── README.md # Documentation
npm run build
Run the automated tests:
npm test
Test URL conversion manually:
npm run test:url
MIT
社区