This project provides MCP tools to fetch the latest stable version of libraries and modules from various programming language package registries (Java, Python, Go, Rust, PHP, C/C++, Ruby, Dart, Swift, and JavaScript/Node.js).
- Fetches the latest stable version for a given package from the main registry of each supported language.
- Asynchronous HTTP requests for fast responses.
- Easily extensible and maintainable.
- Clone the repository.
- Install dependencies:
pip install -r requirements.txt
- Run the server:
python main.py
The Dependency MCP Server provides the following tools to fetch the latest stable version of libraries and modules from various package registries:
| Tool Name | Description | Main Parameters |
|---|---|---|
| get_latest_java_version | Get latest version of a Java library from Maven Central | group_id, artifact_id |
| get_latest_nuget_version | Get latest version of a .NET/NuGet package | package_id |
| get_latest_npm_version | Get latest version of an npm package | package_name |
| get_latest_python_version | Get latest version of a Python package from PyPI | package_name |
| get_latest_go_version | Get latest version of a Go module | module_path |
| get_latest_rust_version | Get latest version of a Rust crate from crates.io | crate_name |
| get_latest_php_version | Get latest version of a PHP package from Packagist | package_name |
| get_latest_cpp_version | Get latest version of a C/C++ package from Conan Center | package_name |
| get_latest_ruby_version | Get latest version of a Ruby gem from RubyGems | gem_name |
| get_latest_dart_version | Get latest version of a Dart package from pub.dev | package_name |
| get_latest_swift_version | Get latest version of a Swift package from Swift Index | owner, repo |
See main.py for function signatures and usage details.
To configure the Dependency MCP Server with Cursor or Claude Desktop, you have two options:
Add the following to your configuration (e.g., in your .cursor/config.json or equivalent):
{
"mcpServers": {
"Dependency Version Server": {
"command": "python3",
"args": ["<path>/dependency-mcp-server/main.py"],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}- Replace
<path>with the actual path to yourdependency-mcp-serverdirectory. - This configuration will allow Cursor or Claude Desktop to launch and communicate with your Dependency MCP Server automatically.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
MIT
