# mcp-clojure-sdk

> MCP Server

This repository provides a Clojure SDK for building Model Context Protocol (MCP) servers. It includes examples like a calculator, Vega-lite visualizer, and code analysis tool, demonstrating how to define and

## Overview

- **Category:** Developer Tools
- **Language:** Clojure
- **Stars:** 63
- **Forks:** 1
- **Owner:** unravel-team
- **GitHub:** https://github.com/unravel-team/mcp-clojure-sdk
- **Created:** 2025-03-09T09:27:30+00:00
- **Updated:** 2025-03-27T18:55:33+00:00
- **Source:** https://model-context-protocol.com/servers/clojure-sdk-mcp-server-development

## Setup

## Setup

1.  Add the `clojure-sdk` dependency to your project:

```clojure
{io.modelcontextprotocol/mcp-clojure-sdk
 {:git/url "https://github.com/unravel-team/mcp-clojure-sdk.git"
  :git/sha "039cf220ac6bb3858f71e823016035e257a5380d"}}
```
2.  Build the examples JAR using `$ make clean && make examples-jar`.
3.  For the Vega-lite server, install the [vl-convert CLI](https://github.com/vega/vl-convert).
4.  Run the servers using the provided `java` commands in Claude Desktop or MCP Inspector, ensuring to replace the JAR path and `vl-convert` path (for Vega-lite) with the correct paths on your system.

## Tools

## Available Tools

1.  **Calculator**: Provides basic arithmetic tools like `add`, `subtract`, `multiply`, `divide`, `power`, `square-root`, `average`, `factorial`.
2.  **Vega-lite**: Provides tools for generating Vega-lite charts: `save-data`, `visualize-data`.
3.  **Code Analysis**: Provides prompts `analyse-code` and `poem-about-code`.
