BC

bigsy/clojars-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 6 forks 质量 66 趋势 14MIT

A Model Context Protocol (MCP) server that provides tools for fetching dependency information from Clojars, the Clojure community's artifact repository.

概览

A Model Context Protocol (MCP) server that provides tools for fetching dependency information from Clojars, the Clojure community's artifact repository for Cline, Roo Code, Cody, Claude Desktop etc. The quickest way to use the Clojars MCP Server is to run it directly with npx: To install Clojars Dependency Server for Claude Desktop automatically via Smithery: 4. Add the server to your Claude configuration: For VSCode Claude extension, add to cline_mcp_settings.json (typically located at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/ on macOS): For Claude desktop app, add to claude_desktop_config.json (typically located at ~/Library/Application Support/Claude/ on macOS): After adding the server configuration, 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", making them available for use.

README

以下为原文 README 节选,完整内容请查看原文。

Clojars MCP Server

A Model Context Protocol (MCP) server that provides tools for fetching dependency information from Clojars, the Clojure community’s artifact repository for Cline, Roo Code, Cody, Claude Desktop etc.

Installation

Installing via npx

The quickest way to use the Clojars MCP Server is to run it directly with npx:

npx clojars-deps-server

You can also install it globally:

npm install -g clojars-deps-server

Installing via Smithery

To install Clojars Dependency Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install clojars-deps-server --client claude

Manual Installation

  1. Clone this repository:
git clone https://github.com/yourusername/clojars-deps-server.git
cd clojars-deps-server
  1. Install dependencies:
npm install
  1. Build the server:
npm run build
  1. Add the server to your Claude configuration:

For VSCode Claude extension, add to cline_mcp_settings.json (typically located at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/ on macOS):

{
  "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 (typically located at ~/Library/Application Support/Claude/ on macOS):

{
  "mcpServers": {
    "clojars-deps-server": {
      "command": "node",
      "args": ["/path/to/clojars-deps-server/build/index.js"]
    }
  }
}

After adding the server configuration, 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”, making them available for use.

Features

  • Get the latest version of any Clojars dependency
  • Check if a specific version of a dependency exists
  • Get version history of dependencies with configurable limits
  • Simple, focused responses
  • Easy integration with Claude through MCP

How It Works

When this MCP server is configured in Claude’s settings, it automatically becomes available in Claude’s system prompt under the “Connected MCP Servers” section. This makes Claude aware of the server’s capabilities and allows it to use the provided tools through the use_mcp_tool command.

The server exposes three tools:

get_clojars_latest_version

{
  "name": "get_clojars_latest_version",
在 GitHub 查看完整 README

安装

npx clojars-deps-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "clojars-deps-server": { "command": "node", "args": ["/path/to/clojars-deps-server/build/index.js"] } } }