dependency-mcp-server

dependency-mcp-server

0

The Dependency MCP Server is a tool designed to fetch the latest stable versions of libraries and modules from multiple programming languages. It offers a fast, easily extensible, and maintainable solution with integration options for systems like Cursor and Claude Desktop.

Dependency MCP Server (dependency-latest-version-finder)

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).

alt text

Features

  • 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.

Python Setup

  1. Clone the repository.
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Run the server:
    python main.py
    

Usage

The Dependency MCP Server provides the following tools to fetch the latest stable version of libraries and modules from various package registries:

Tool NameDescriptionMain Parameters
get_latest_java_versionGet latest version of a Java library from Maven Centralgroup_id, artifact_id
get_latest_nuget_versionGet latest version of a .NET/NuGet packagepackage_id
get_latest_npm_versionGet latest version of an npm packagepackage_name
get_latest_python_versionGet latest version of a Python package from PyPIpackage_name
get_latest_go_versionGet latest version of a Go modulemodule_path
get_latest_rust_versionGet latest version of a Rust crate from crates.iocrate_name
get_latest_php_versionGet latest version of a PHP package from Packagistpackage_name
get_latest_cpp_versionGet latest version of a C/C++ package from Conan Centerpackage_name
get_latest_ruby_versionGet latest version of a Ruby gem from RubyGemsgem_name
get_latest_dart_versionGet latest version of a Dart package from pub.devpackage_name
get_latest_swift_versionGet latest version of a Swift package from Swift Indexowner, repo

See main.py for function signatures and usage details.

Integration with Claude Desktop and Cursor

To configure the Dependency MCP Server with Cursor or Claude Desktop, you have two options:

1. Run as a Local Process

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 your dependency-mcp-server directory.
  • This configuration will allow Cursor or Claude Desktop to launch and communicate with your Dependency MCP Server automatically.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT