- Explore MCP Servers
- github-dependabot-mcp-server
Github Dependabot Mcp Server
What is Github Dependabot Mcp Server
github-dependabot-mcp-server is a server designed to fetch GitHub Dependabot alerts for specified repositories, helping developers manage security vulnerabilities in their projects.
Use cases
Use cases include automating the retrieval of Dependabot alerts for continuous integration pipelines, enhancing security monitoring in development workflows, and providing insights into dependency vulnerabilities for project maintainers.
How to use
To use github-dependabot-mcp-server, install the ‘uv’ package, clone the repository, and set up GitHub authentication with a Personal Access Token that has the necessary permissions.
Key features
Key features include fast dependency management using ‘uv’, the ability to fetch Dependabot alerts, and customizable authentication options for GitHub API access.
Where to use
github-dependabot-mcp-server can be used in software development environments where GitHub repositories are managed, particularly in projects that require monitoring of security vulnerabilities.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Github Dependabot Mcp Server
github-dependabot-mcp-server is a server designed to fetch GitHub Dependabot alerts for specified repositories, helping developers manage security vulnerabilities in their projects.
Use cases
Use cases include automating the retrieval of Dependabot alerts for continuous integration pipelines, enhancing security monitoring in development workflows, and providing insights into dependency vulnerabilities for project maintainers.
How to use
To use github-dependabot-mcp-server, install the ‘uv’ package, clone the repository, and set up GitHub authentication with a Personal Access Token that has the necessary permissions.
Key features
Key features include fast dependency management using ‘uv’, the ability to fetch Dependabot alerts, and customizable authentication options for GitHub API access.
Where to use
github-dependabot-mcp-server can be used in software development environments where GitHub repositories are managed, particularly in projects that require monitoring of security vulnerabilities.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Github Dependabot MCP server
Fetches Github Dependabot alerts for a specified repository.
Requirements
- uv: A fast Python package installer and resolver. Used to run the script and manage dependencies.
- Github Personal Access Token: Required for authenticating with the Github API. Ensure it has the necessary permissions (e.g.,
repo
,security_events
).
Setup
-
Install
uv
:
Follow the official installation instructions for your OS:- macOS / Linux:
- Using Homebrew (macOS):
brew install uv
- Or using curl:
curl -LsSf https://astral.sh/uv/install.sh | sh
- Using Homebrew (macOS):
- Windows (PowerShell):
irm https://astral.sh/uv/install.ps1 | iex
- Other methods: See the uv documentation.
- macOS / Linux:
-
Clone the repository:
git clone [email protected]:avarant/github-dependabot-mcp-server.git cd github-dependabot-mcp-server
-
Set up Github Authentication:
First, you need to generate a Github Personal Access Token (PAT) if you don’t already have one:
- Go to your Github Settings -> Developer settings -> Personal access tokens -> Tokens (classic).
- Click “Generate new token” (or “Generate new token (classic)”).
- Give your token a descriptive name (e.g., “MCP Dependabot Server”).
- Set an expiration date.
- Select the necessary scopes:
repo
(Full control of private repositories) - needed for accessing repository data.security_events
(Read security events) - needed for reading Dependabot alerts.
- Click “Generate token” and copy the generated token immediately. You won’t be able to see it again.
Once you have your token, this server requires it to authenticate with the Github API. There are two ways to provide it:
-
Option 1: Using macOS Keychain (Recommended on macOS):
The script will automatically attempt to read the token from your macOS Keychain using thekeyring
library.-
Via Command Line:
Run the following command in your terminal, replacing<your token>
with your actual Github token:# Make sure you are in the project's virtual environment if you have one active # Or install keyring globally if needed: pip install keyring keyring set github_mcp_server personal_access_token # It will prompt you to enter the token securely.
Alternatively, using the Python module:
python -m keyring set github_mcp_server personal_access_token
-
Via Keychain Access UI:
- Open “Keychain Access” (Applications -> Utilities).
- Select the
login
keychain and thePasswords
category. - Click the
+
button to add a new item. - Enter the following details:
- Keychain Item Name:
personal_access_token
- Account Name:
github_mcp_server
- Password: Paste your Github token.
- Keychain Item Name:
- Click “Add”.
-
-
Option 2: Using Environment Variable:
If the token is not found in the Keychain, the script will fall back to using theGITHUB_PERSONAL_ACCESS_TOKEN
environment variable. If you use this method, the script will attempt to store the token in your Keychain for future use (ifkeyring
is functional).
-
Update your MCP configuration:
Edit your global
~/.cursor/mcp.json
or create a local.cursor/mcp.json
file within your project:Note: Replace
<absolute path to github-dependabot-mcp-server directory>
with your actual path.
Tools Provided
This MCP server provides the following tool:
get_dependabot_alerts(repo_owner: str, repo_name: str)
:- Fetches Dependabot alerts for the specified repository.
repo_owner
: The owner of the repository (username or organization).repo_name
: The name of the repository.- Returns a list of alert objects from the Github API.
Usage Example
example prompt
Fetch all dependabot alerts for https://github.com/avarant/github-dependabot-mcp-server
DevTools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.