modex
by theronic·★ 114·Score 41
Modex is a Clojure library implementing MCP Server & Client to extend AI models with tools, resources, and prompts.
Overview
Modex provides a native Clojure implementation of the Model Context Protocol, allowing developers to create MCP servers that expose tools, resources, and prompts to AI clients. It implements the stdio transport from the 2024-11-05 MCP spec, eliminating the need for proxy tools. The library features an ergonomic API for defining tools, with support for parameter validation, documentation, and error handling. It includes comprehensive examples showing how to build an MCP server and integrate it with clients like Claude Desktop.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose Modex if you're working with Clojure and need a native implementation of MCP that doesn't require additional proxy layers.
When NOT to choose this
Don't choose Modex if you need resources or prompts support (currently WIP), or if you prefer the Apache 2.0 license over its GPL/commercial licensing model.
Tools this server exposes
4 tools extracted from the READMEgreetGreets a person by name.
addAdds two numbers.
subtractSubtracts two numbers (- a b)
error-handlingThis tool throws intentionally. Modex will handle errors for you.
Comparable tools
Installation
Installation
- Clone the repository:
``bash git clone git@github.com/theronic/modex.git cd modex ``
- Build the uberjar:
``bash ./build.sh ` This creates an executable jar at target/modex-mcp-0.2.2.jar`.
- Configure Claude Desktop:
Open ~/Library/Application Support/Claude/claude_desktop_config.json and add: ``json { "mcpServers": { "modex-mcp": { "command": "java", "args": ["-jar", "/full/path/to/modex/target/modex-mcp-0.2.2.jar"] } } } ``
- Restart Claude Desktop to activate the server.
FAQ
- Can I modify the server while an MCP Client is connected?
- Not yet, but nREPL support is planned to allow live changes without rebuilding the uberjar.
- What transport protocols does Modex support?
- Modex implements the stdio transport from the 2024-11-05 MCP spec. SSE support is in progress.
On Hacker News
Recent discussion from the developer community.
- Story by pgt · 2025-03-28
Compare modex with
Last updated · Auto-generated from public README + GitHub signals.