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
A clojure-sdk for creating Model Context Protocol servers. It provides tools and examples for building MCP servers in Clojure.
The SDK includes examples like calculator_server and vegalite_server to demonstrate MCP server implementation. The examples directory is a deps-new project with instructions for compiling and running the servers. The SDK's dependencies are specified using a Git URL and SHA.
The examples JAR contains three servers: calculator_server, vegalite_server, and code_analysis_server. The calculator_server provides arithmetic tools. The vegalite_server generates Vega-lite charts, requiring the vl-convert CLI. The code_analysis_server offers prompts like analyse-code and poem-about-code. Instructions are provided for running these servers in Claude Desktop and MCP Inspector, including necessary configurations and dependencies.
Refer to the todo.org file for a list of pending changes.
The clojure-sdk is a standard deps-new project. Standard commands are supported.
This SDK is built on top of lsp4clj.
Copyright © 2025 Unravel.tech
Distributed under the MIT License
unravel-team/mcp-clojure-sdk
March 9, 2025
March 27, 2025
Clojure