Skip to content
Marko Kocić edited this page Feb 18, 2026 · 1 revision

Pi Coding Agent is a highly customizable minimal agenting tool.

Home page: https://pi.dev The source code is https://github.com/badlogic/pi-mono

While it doesn't support MCP servers by default, its high extensibility allows it to use MCPs using an extension.

Once you install clojure-mcp by following installation instructions, you need to install the pi-mcp-adapter extension.

pi install npm:pi-mcp-adapter

Then you need to update ~/.pi/agent/mcp.json to add clojure-mcp

{
  "mcpServers": {
    "clojure-mcp": {
      "command": "clojure",
      "args": ["-Tmcp", "start", ":config-profile", ":cli-assist"],
      "directTools": true
    }
  }
}

Once in a Clojure project, you can just ask it to use nrepl, and it will comply. Use the /mcp command for further interaction with MCP servers.

If you don't want to install MCP server globally, you can also do it localy for a single project by creating .pi/mcp.json file in project root directory.

Clone this wiki locally