MCP Clojure SDK
A Clojure SDK to create MCP servers (and eventually clients)
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
Maintainer
Works with
Installation
Manual Installation
npx mcp-clojure-sdkConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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"}}}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/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-jarUse 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-serverConfigure 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"]
}
}
}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 cacheMCP 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.
MCP Clojure SDK Alternatives — Similar Developer Tools Servers
Looking for alternatives to MCP Clojure SDK? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up MCP Clojure SDK in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.