mcp-clojure-sdk

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

48
1

io.modelcontext/clojure-sdk

A clojure-sdk for creating Model Context Protocol servers. It provides tools and examples for building MCP servers in Clojure.

Table of Contents

Usage

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.

Examples

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.

Pending Work

Refer to the todo.org file for a list of pending changes.

Development of the SDK

The clojure-sdk is a standard deps-new project. Standard commands are supported.

Inspiration

This SDK is built on top of lsp4clj.

License

Copyright © 2025 Unravel.tech

Distributed under the MIT License

Repository

UN
unravel-team

unravel-team/mcp-clojure-sdk

Created

March 9, 2025

Updated

March 27, 2025

Language

Clojure

Category

Developer Tools