Clojars-MCP-Server
by: Bigsy
A Model Context Protocol (MCP) server that provides tools for fetching dependency information from Clojars, the Clojure community's artifact repository.
📌Overview
Purpose: To provide a server implementing the Model Context Protocol (MCP) that facilitates easy access to dependency information from Clojars, enhancing integration with Claude applications.
Overview: The Clojars MCP Server is designed to streamline the process of retrieving Clojars dependency information, making it easier for developers using Claude to access the latest or specific versions of Clojure artifacts from the Clojars repository.
Key Features:
-
Latest Version Retrieval: Allows users to easily fetch the latest version of any Clojars dependency, ensuring they always have access to the most up-to-date artifacts.
-
Version Existence Check: Provides the ability to confirm whether a specific version of a dependency exists in Clojars, aiding developers in managing their dependencies effectively.
-
Simple Integration: Features straightforward integration with Claude through the MCP, enabling a seamless user experience and quick access to dependency tools.
Clojars MCP Server
A Model Context Protocol (MCP) server that provides tools for fetching dependency information from Clojars, the Clojure community's artifact repository.
Installation
Installing via npx
Run the server directly with npx:
npx clojars-deps-server
Or install it globally:
npm install -g clojars-deps-server
Installing via Smithery
To install Clojars Dependency Server automatically via Smithery:
npx -y @smithery/cli install clojars-deps-server --client claude
Manual Installation
- Clone this repository:
git clone https://github.com/yourusername/clojars-deps-server.git
cd clojars-deps-server
- Install dependencies:
npm install
- Build the server:
npm run build
- Add the server to your Claude configuration:
For VSCode Claude extension, add to cline_mcp_settings.json
:
{
"mcpServers": {
"clojars-deps-server": {
"command": "node",
"args": ["/path/to/clojars-deps-server/build/index.js"]
}
}
}
For Claude desktop app, add to claude_desktop_config.json
:
{
"mcpServers": {
"clojars-deps-server": {
"command": "node",
"args": ["/path/to/clojars-deps-server/build/index.js"]
}
}
}
Claude will automatically detect and connect to the server on startup. The server's capabilities will be listed in Claude's system prompt under "Connected MCP Servers".
Features
- Get the latest version of any Clojars dependency
- Check if a specific version of a dependency exists
- Simple, focused responses
- Easy integration with Claude through MCP
How It Works
When configured in Claude's settings, the MCP server is listed under "Connected MCP Servers," enabling Claude to use its tools via the use_mcp_tool
command.
The server exposes two tools:
get_clojars_latest_version
{
"name": "get_clojars_latest_version",
"description": "Get the latest version of a Clojars dependency (Maven artifact)",
"inputSchema": {
"type": "object",
"properties": {
"dependency": {
"type": "string",
"description": "Clojars dependency name in format \"group/artifact\" (e.g. \"metosin/reitit\")"
}
},
"required": ["dependency"]
}
}
check_clojars_version_exists
{
"name": "check_clojars_version_exists",
"description": "Check if a specific version of a Clojars dependency exists",
"inputSchema": {
"type": "object",
"properties": {
"dependency": {
"type": "string",
"description": "Clojars dependency name in format \"group/artifact\" (e.g. \"metosin/reitit\")"
},
"version": {
"type": "string",
"description": "Version to check (e.g. \"0.7.2\")"
}
},
"required": ["dependency", "version"]
}
}
The tool names and descriptions clearly indicate their purpose for retrieving version information from Clojars dependencies, facilitating Claude's use of these tools when addressing Clojars-related queries.