dep-diff-mcp is an MCP (Model Context Protocol) server designed to translate dependency lockfile diffs into human-readable upgrade plans. It is aimed at developers using AI coding assistants, helping to determine whether a dependency upgrade is safe and what the risks are.
Purpose
The server reads dependency changelogs and tells users what is risky in an upgrade. Users can point AI assistants (such as Cursor, Claude Desktop, Claude Code) at a Dependabot PR, npm outdated output, or any pair of package versions to get an upgrade plan sorted by risk.
Main capabilities
- Semantic version classification: major / minor / patch / downgrade / unknown.
- Breaking changes: extracted from GitHub release note titles.
- Security fixes: identifies CVEs present in fromVersion but resolved in toVersion via OSV.dev.
- Migration links: upgrade guide URLs found in release notes.
- Recommendations: a one-line conclusion and a level.
- Bulk analysis: analyze_packages_bulk can analyze up to 50 package upgrades in parallel and sort them by risk: security > caution > review > likely-safe > safe, while also returning summary counts.
- Structured output: both tools return a JSON text block and MCP structured content conforming to the declared outputSchema, allowing clients that support structured output to directly read recommendationLevel or securityFixes[].
Usage
Installation and configuration
- User-level installation (available to all projects): a single command.
- Project-level installation: write .mcp.json in the repository root for team sharing.
- A token can be provided explicitly (if already authenticated via the gh CLI, this can be skipped).
- Restart the Claude Code session to load the server.
Cursor and Claude Desktop
Add to the MCP client configuration:
- Cursor: ~/.cursor/mcp.json
- Claude Desktop: on macOS, ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows %APPDATA%\Claude\claude_desktop_config.json After restarting the MCP client, ask questions in natural language (such as "What are the risks in this Dependabot PR?"), and the tool will be called automatically.
Hosted remote instance (no installation required)
The hosted instance runs at https://dep-diff.digicatalyst.ca/mcp,通过 and is provided over streamable HTTP, so the npm package can be skipped. It can also be used in the client configuration. The hosted instance uses its own GitHub token for authentication, so release note queries work under the full rate limit without user configuration. Pass ?githubToken=ghp_xxx on the URL only if you want requests to count against your own GitHub quota. The instance is stateless and does not keep query logs (see PRIVACY.md). If you want the token not to leave your machine, you can run the npm package locally. The same instance is also listed on Smithery and proxied through its gateway.
GitHub token (optional but recommended)
The server accesses the GitHub API to read release notes. Without a token, it is limited to 60 requests per hour (GitHub anonymous limit), which is suitable for occasional single-package queries but not for bulk lockfile analysis. Token resolution order:
- Environment variable GITHUB_TOKEN (if set).
- gh auth token - if the GitHub CLI is installed and authenticated, the server automatically uses that token, with no configuration changes needed.
- Anonymous (60/hour).
Using the gh CLI is recommended: if gh is already installed (brew install gh && gh auth login), no further action is needed; the server will use the existing authentication without requiring a plaintext token.
Alternative: environment variable. In https://github.com/settings/tokens Create a fine-grained token:
- Token name: dep-diff-mcp
- Expiration: 90 days (rotate regularly)
- Repository access: Public Repositories (read-only) — do not access private repositories
- Permissions: no permissions beyond the default public read — do not grant repo, workflow, user, or any write scope Then reference it in the MCP configuration. The configuration file is stored in plaintext on disk, keep permissions strict (chmod 600), and do not paste the token into AI chats, issues, or shared screens. The token should be least-privilege (public repository read only), so that even if leaked it can only read public data that is already readable. Rotate the token regularly, and in https://github.com/settings/tokens revoke any token that may have been exposed. The server never writes the token to stdout/stderr or response payloads.
Tool descriptions
analyze_package_change
Analyze a single package upgrade. Input: ecosystem (npm, pypi, or github-actions), name, fromVersion, toVersion.
analyze_packages_bulk
Analyze up to 50 package upgrades in parallel. Returns packages sorted by risk (security > caution > review > likely-safe > safe), along with summary counts.
Supported ecosystems
- GitHub Actions: pass the action reference as name (such as actions/checkout, or the nested github/codeql-action/init). The action reference is itself already a repository coordinate, so release notes and breaking changes can be resolved without a registry query, and bare major version tags such as 4 -> 5 are also classified correctly.
- npm and PyPI are supported as well.
When to use
- Review risk in Dependabot PRs.
- Determine whether a single package upgrade is safe (such as lodash from 4.17.20 to 4.17.21).
- Analyze lockfile diffs in bulk and prioritize security-related upgrades.
- Integrate dependency upgrade risk assessment into AI coding assistants.
Limitations
- Without a GitHub token, the rate limit is 60 requests per hour, which is not suitable for bulk analysis.
- The hosted instance is stateless and does not retain query logs, but if you use your own token it must be passed via URL.
- Bulk analysis supports up to 50 changes.
- Other features, fees, pricing, platforms, effects, or usage steps are not provided at this time.