io.modelcontext/clojure-sdk
@unravel-team
About io.modelcontext/clojure-sdk
A Clojure SDK to create MCP servers (and eventually clients)
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-clojure-sdk": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"java",
"-Dclojure.tools.logging.factory=clojure.tools.logging.impl/log4j2-factory",
"-Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.Slf4jLog",
"-Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector",
"-Dlog4j2.configurationFile=log4j2-mcp.xml",
"-Dbabashka.json.provider=metosin/jsonista",
"-Dlogging.level=INFO",
"-cp",
"examples/target/io.modelcontextprotocol.clojure-sdk/examples-1.2.0.jar",
"calculator_server"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is io.modelcontext/clojure-sdk?
A Clojure SDK for building servers that implement the Model Context Protocol (MCP). It provides core components including server implementation, STDIO transport, error handling, and protocol specifications. It is aimed at Clojure developers who want to create MCP servers that expose tools, resources, and prompts to AI clients like Claude Desktop.
How to use io.modelcontext/clojure-sdk?
Add the dependency via git coordinates in deps.edn or use the provided deps-new template or GitHub template to quickly scaffold a new project. Build the examples jar with make clean && make examples-jar, then run any example server (e.g., calculator_server, vegalite_server, code_analysis_server) using java with the required JVM properties and classpath.
Key features of io.modelcontext/clojure-sdk
- Core server implementation handling MCP request/response cycles
- STDIO transport layer using core.async channels
- Custom error handling and protocol specification validation
- Example servers: calculator, Vega-lite charting, and code analysis
- Templates for quick project scaffolding (deps-new, GitHub)
Use cases of io.modelcontext/clojure-sdk
- Expose arithmetic tools (add, subtract, multiply, etc.) to an MCP client
- Generate Vega-lite charts from data via a dedicated tool server
- Provide analysis prompts for code review or poetry generation
- Build custom MCP servers in Clojure with minimal boilerplate
FAQ from io.modelcontext/clojure-sdk
What is the MCP protocol and how does this SDK relate to it?
The Model Context Protocol (MCP) is a client-server protocol for AI assistants to interact with tools, resources, and prompts. This SDK implements that protocol in Clojure, handling initialization, discovery, and interaction phases.
What dependencies or runtime requirements does this SDK have?
It requires a Java runtime and Clojure build tools (deps.edn). The Vega-lite example additionally needs the vl-convert CLI installed.
How can I create a new MCP server using this SDK?
Use the deps-new template mcp-clojure-server-deps-new or the GitHub template example-cool-mcp-server to quickly start a new project.
How do I run the example servers?
Build the examples jar with make clean && make examples-jar, then invoke each server via java with the specified JVM properties and classpath. Examples are configured for Claude Desktop or MCP Inspector.
What transport does this SDK support?
The SDK implements STDIO transport for communication between client and server.
Frequently asked questions
What is the MCP protocol and how does this SDK relate to it?
The Model Context Protocol (MCP) is a client-server protocol for AI assistants to interact with tools, resources, and prompts. This SDK implements that protocol in Clojure, handling initialization, discovery, and interaction phases.
What dependencies or runtime requirements does this SDK have?
It requires a Java runtime and Clojure build tools (deps.edn). The Vega-lite example additionally needs the `vl-convert` CLI installed.
How can I create a new MCP server using this SDK?
Use the `deps-new` template `mcp-clojure-server-deps-new` or the GitHub template `example-cool-mcp-server` to quickly start a new project.
How do I run the example servers?
Build the examples jar with `make clean && make examples-jar`, then invoke each server via `java` with the specified JVM properties and classpath. Examples are configured for Claude Desktop or MCP Inspector.
What transport does this SDK support?
The SDK implements STDIO transport for communication between client and server.
Basic information
More Developer Tools MCP servers

Raccha AI
Shree MandadiMCP-first toolbox for agents: namespaced key-value storage, a FIFO queue, auth, and a handful of stateless utility tools (JWT decode, hashing, cert inspection, CIDR math). Free while in early access. This repository is a
OrangePro
Aamir SiddiquiOrangePro local-first CLI + MCP server for behavior mapping, grounded test generation, and dynamic proof.
SecondSim
econdSim provisions real UK mobile numbers (non-VoIP) via eSIM, built for freelancers, sole traders, small businesses, and enterprise teams. Unlike VoIP apps and virtual numbers, SecondSim numbers register as genuine phy

Skilder.ai
skilder.aiRun skills and MCP tools like production software: versioned, composed into roles, distributed to every agent from one governed library.

discoverGPT
Joe MonastierodiscoverGPT is visualAI's unified MCP gateway for AI commerce, exposing 29 tools across four capabilities on one canonical product catalog: trimodal search (natural-language, precise-color, and image-similarity), AI cata
Comments