Skip to content

estevaosaleme/dependency-mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors