- Notifications
You must be signed in to change notification settings - Fork3
a lib to build MCP clients and MCP servers in Clojure(script)
License
metosin/mcp-toolkit
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This library is a very unofficial MCP SDK in Clojure.
It handles the communication between MCP clients and MCP servers, and attempts to providea Clojure-ish experience to developers working on expending the MCP ecosystem.
Status:alpha quality
Tested on Claude Desktop and Claude Code, no problems found for the features implemented.
- API for both clients & servers
- CLJC
- Clojure
- Clojurescript
- Babashka
- I/O agnostic library
- Uses Promesa to support async tasks in prompts, resources and tools
- Compatible with protocol versions
2024-11-052025-03-262025-06-18(not yet)
- MCP features implemented
- Cancellation
- Ping
- Progress
- Roots
- Sampling
- Prompts
- Resources
- Tools
- Completion
- Logging
- Pagination
- Example projects
- CLJC server using STDIO
- CLJC client using STDIO
- CLJ server using HTTP/SSE
- CLJ server using Streamable HTTP (PR welcome)
See theREADME.md in theexample/cljc-server-stdio/ project to learn:
- how to use this library to make your own MCP server in Clojure, and
- how to develop its components (prompts, resources and tools) via the REPLwhile the server is running.
Additionally, see the documentation on CLJDocs or in thedoc/ directory.
npm install./bin/kaocha --watch
MCP toolkit aims to be more convenient for the Clojure community thanthe official MCP SDKs for Java or Typescript.
It provides utilities to build an MCP server in Clojure(script), butdoesn't provide any prompts, resources or tools to help working on a Clojure codebase.It is typically used for building general purpose MCP stuffs.
- MCP Clojure SDK: similar library, discovered after being mostly done implementing this one 😅
- Calva'sBackseat Driver
- Clojure MCP
- Modex
This project is distributed under theEclipse Public License v2.0.
Copyright (c)Metosin and contributors.
About
a lib to build MCP clients and MCP servers in Clojure(script)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Contributors2
Uh oh!
There was an error while loading.Please reload this page.