MCP Clojure SDK

v1.0.0Developer Toolsstable

A Clojure SDK to create MCP servers (and eventually clients)

mcp-clojure-sdkmcpai-integration
Share:
61
Stars
0
Downloads
0
Weekly
0/5

What is MCP Clojure SDK?

MCP Clojure SDK is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to clojure sdk to create mcp servers (and eventually clients)

A Clojure SDK to create MCP servers (and eventually clients)

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Clojure SDK to create MCP servers (and eventually clients)

Use Cases

Build MCP servers and clients using Clojure.
Develop AI integrations with functional programming.
Create Clojure-based AI tools and services.
unravel-team

Maintainer

LicenseMIT
Languageclojure
Versionv1.0.0
UpdatedApr 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-clojure-sdk

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MCP Clojure SDK

The MCP Clojure SDK is a Clojure library that lets developers build Model Context Protocol servers (and eventually clients) using functional programming idioms on the JVM. It provides the protocol implementation, a stdio transport layer, and working example servers — including a calculator and a Vega-Lite chart generator — so teams can stand up MCP-compatible tools in Clojure without hand-rolling the wire protocol. Clojure shops building AI integrations can use this SDK as a foundation for exposing domain logic, data pipelines, or internal services as MCP tools callable from Claude, Cursor, or other MCP clients.

Prerequisites

  • Clojure CLI tools (clj / clojure) installed — see https://clojure.org/guides/install_clojure
  • Java 11 or newer (the Clojure runtime requirement)
  • An MCP-compatible client such as Claude Desktop for testing the resulting server
  • Optional: vl-convert CLI if using the Vega-Lite example server
1

Add the SDK to your deps.edn

Reference the SDK as a git dependency in your Clojure project's deps.edn file using the published SHA.

{:deps {io.modelcontextprotocol/mcp-clojure-sdk
  {:git/url "https://github.com/unravel-team/mcp-clojure-sdk.git"
   :git/sha "d42474c5f66b6f5ad1e4d6ce2a4e8972640fb831"}}}
2

Explore the example servers

The repository ships with three reference implementations in the examples/ directory: calculator_server.clj (arithmetic tools), vegalite_server.clj (data visualizations), and a code analysis server. Review these before building your own.

git clone https://github.com/unravel-team/mcp-clojure-sdk.git
cd mcp-clojure-sdk
ls examples/
3

Build the example JARs

Use the provided Makefile to compile the examples into a standalone JAR that can be launched by an MCP client.

make clean && make examples-jar
4

Use the deps-new template for a fresh server

The SDK provides a deps-new template for scaffolding a new MCP server project. Clone the template repository and follow its README to generate a project skeleton.

# After installing deps-new:
clojure -Tnew create :template io.github.unravel-team/mcp-clojure-server :name myorg/my-mcp-server
5

Configure your MCP client to launch the server

Point Claude Desktop at the compiled JAR using the java command. Adjust the path to match where the JAR was built.

{
  "mcpServers": {
    "clojure-server": {
      "command": "java",
      "args": ["-jar", "/path/to/mcp-clojure-sdk/target/examples.jar"]
    }
  }
}
6

Run tests and build the SDK library

Use the Makefile targets to run the test suite and build the SDK for local use or deployment to Clojars.

make test
make build
make install   # installs to local Maven cache

MCP Clojure SDK Examples

Client configuration

Example claude_desktop_config.json that launches the compiled examples JAR. This runs the calculator and Vega-Lite example servers packaged together.

{
  "mcpServers": {
    "clojure-mcp": {
      "command": "java",
      "args": ["-jar", "/path/to/mcp-clojure-sdk/target/examples.jar"]
    }
  }
}

Prompts to try

These prompts test the example servers bundled with the SDK.

- "Calculate the factorial of 12."
- "What is the square root of 144?"
- "Add 387 and 915 then divide the result by 7."
- "Generate a bar chart of monthly sales data using Vega-Lite."

Troubleshooting MCP Clojure SDK

clojure command not found after installation

Follow the official Clojure install guide at https://clojure.org/guides/install_clojure for your OS. On macOS use 'brew install clojure/tools/clojure'. Verify with 'clojure --version' after installation.

make examples-jar fails with 'No such file or directory'

Ensure you are running make from the root of the cloned mcp-clojure-sdk repository where the Makefile lives. Also confirm the Clojure CLI tools are on your PATH — 'which clojure' should return a path.

MCP client cannot connect to the Clojure server

The server uses stdio transport. Check that the java command in your MCP config points to the correct JAR path and that Java 11+ is in the system PATH used by your MCP client. Test manually by running 'java -jar /path/to/examples.jar' in a terminal — it should wait for stdin input.

Frequently Asked Questions about MCP Clojure SDK

What is MCP Clojure SDK?

MCP Clojure SDK is a Model Context Protocol (MCP) server that clojure sdk to create mcp servers (and eventually clients) It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MCP Clojure SDK?

Follow the installation instructions on the MCP Clojure SDK GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MCP Clojure SDK?

MCP Clojure SDK works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MCP Clojure SDK free to use?

Yes, MCP Clojure SDK is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-clojure-sdk": { "command": "npx", "args": ["-y", "mcp-clojure-sdk"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MCP Clojure SDK?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides