Overview
Babashka MCP Server is a Model Context Protocol server designed for executing Babashka code, which is a native Clojure interpreter for scripting.
To use the Babashka MCP Server, first install Babashka, then install the server dependencies, build the server, and configure it through environment variables. You can execute Babashka code using the provided tools.
- Execute Babashka code through MCP tools - Cache recent command results - Access command history through MCP resources - Configurable command timeouts
- Running Clojure scripts in a server environment.
- Automating tasks using Babashka's scripting capabilities.
- Caching and managing command executions for efficient resource usage.
Add to your AI client
Use these steps to connect Babashka MCP Server 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": {
"bmorphism-babashka-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bmorphism-babashka-mcp-server-mcp-mirror"
]
}
}
}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": {
"bmorphism-babashka-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bmorphism-babashka-mcp-server-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"bmorphism-babashka-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bmorphism-babashka-mcp-server-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"bmorphism-babashka-mcp-server-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bmorphism-babashka-mcp-server-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"bmorphism-babashka-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bmorphism-babashka-mcp-server-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"bmorphism-babashka-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bmorphism-babashka-mcp-server-mcp-mirror"
]
}
}
}FAQ
What is Babashka?
Babashka is a native Clojure interpreter for scripting that allows you to run Clojure code quickly and efficiently.
How do I install Babashka?
You can install Babashka using Homebrew on macOS, a bash script on Linux, or Scoop on Windows.
Can I configure the server?
Yes! The server can be configured through environment variables, including the path to the Babashka executable.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1056,"uuid":"afe31761-b037-470c-8062-24831914f109","name":"bmorphism_babashka-mcp-server","title":"Babashka MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"$D2025-01-28T02:28:43.121Z","updated_at":"$D2025-02-23T07:13:15.817Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"babashka,mcp-server,clojure","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/bmorphism_babashka-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]