MCP ExplorerExplorer

Mcp Clj

@hugoduncanon 9 months ago
32 MIT
FreeCommunity
AI Systems
A MCP server written in clojure

Overview

What is Mcp Clj

mcp-clj is a Clojure implementation of the Model-Channel Protocol (MCP) designed to expose Clojure REPL functionality over an SSE transport.

Use cases

mcp-clj can be used in scenarios where Clojure REPL functionality needs to be accessed remotely, such as in development environments or applications that require interactive programming capabilities.

How to use

To use mcp-clj, add it as a dependency in your project. Start the server by requiring the core namespace and calling create-server with the desired port. For example, use port 3001 to start the server.

Key features

Key features of mcp-clj include compatibility with Anthropic’s MCP specification, the ability to expose Clojure REPL functionality, and a simple and reliable implementation for both client and server components.

Where to use

undefined

Content

mcp-clj

An implementation of the Model-Channel Protocol (MCP) in Clojure,
designed to expose Clojure REPL functionality over an SSE transport.

Project Description

mcp-clj is a Clojure implementation of the Model-Channel Protocol (MCP)
defined by Anthropic. It provides both client and server components for
MCP communication, with a specific focus on exposing Clojure REPL
functionality. The project aims to maintain compatibility with
Anthropic’s MCP specification while providing a simple and reliable
implementation.

Usage

Add mcp-clj as a dependency to your project.

  1. Add the mcp-project as a dependency:
:deps {org.hugoduncan/mcp-clj
        {:git/url   "https://github.com/hugoduncan/mcp-clj"
         :git/sha   "replace with latest git sha"
         :deps/root "projects/server"}}
  1. In the project, start the server:
(require 'mcp-clj.mcp-server.core)
(def server (mcp-clj.mcp-server.core/create-server {:port 3001}))

This will start the server on port 3001. You can then connect to the
server using an MCP client.

Configuration

Configuring Claude Desktop

To configure Claude Desktop to use mcp-clj, you need to use
mcp-proxy.

In claude_desktop_config.json, add:

Contributing

Contributions to mcp-clj are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and ensure all tests pass.
  4. Submit a pull request with a detailed description of your changes.

License

mcp-clj is licensed under the MIT License. See the LICENSE file for more details.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers