drio
Open app

Modex: Model Context Protocol Server & Client Library in Clojure

Source

Modex is a Clojure MCP Library to augment your AI models with Tools, Resources & Prompts using Clojure (Model Context Protocol). Implements MCP Server & Client.

Catalog onlyCatalog onlySTDIO

Overview

Modex is a native Clojure implementation of the Model Context Protocol (MCP) that allows users to augment AI models with tools, resources, and prompts.

To use Modex, clone the repository, build the uberjar, and configure it in your Claude Desktop settings to run as an MCP server.

  • Native Clojure implementation of MCP - Implements stdio transport for easy integration - Allows augmentation of AI models with custom tools and resources
  1. Connecting AI models to databases for querying data.
  2. Enabling AI to read and process files like PDFs.
  3. Creating templated workflows for AI interactions.

Add to your AI client

Use these steps to connect Modex: Model Context Protocol Server & Client Library in Clojure in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "modex-theronic": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-modex-theronic"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "modex-theronic": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-modex-theronic"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "modex-theronic": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-modex-theronic"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "modex-theronic": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-modex-theronic"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "modex-theronic": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-modex-theronic"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "modex-theronic": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-modex-theronic"
      ]
    }
  }
}

FAQ

Can I modify the server while an MCP Client is connected?

Not yet, but future updates will allow live changes without rebuilding the uberjar.

Is Modex free to use?

Yes, it is free for non-commercial use under GPLv3, with a commercial license available for private modifications.