MCP Catalogs
Homemodex screenshot

modex

by theronic·114·Score 41

Modex is a Clojure library implementing MCP Server & Client to extend AI models with tools, resources, and prompts.

developer-toolsai-llmdatabase
11
Forks
0
Open issues
14 mo ago
Last commit
2d ago
Indexed

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:

you:Augmenting AI models with database tools like Datomic integration
you:Building custom MCP servers for production systems monitoring
you:Extending AI clients with domain-specific tools and resources
you:Can I modify the server while an MCP Client is connected?
you:What transport protocols does Modex support?

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 README
  • greet

    Greets a person by name.

  • add

    Adds two numbers.

  • subtract

    Subtracts two numbers (- a b)

  • error-handling

    This tool throws intentionally. Modex will handle errors for you.

Comparable tools

mcp-cljlangchain-cljclojure-mcp

Installation

Installation

  1. Clone the repository:

``bash git clone git@github.com/theronic/modex.git cd modex ``

  1. Build the uberjar:

``bash ./build.sh ` This creates an executable jar at target/modex-mcp-0.2.2.jar`.

  1. 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"] } } } ``

  1. 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.

Compare modex with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.