Babashka MCP Server
A Model Context Protocol server for interacting with Babashka, a native Clojure interpreter for scripting
Overview
Babashka MCP Server is a Model Context Protocol server designed for interacting with Babashka, 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 through the server 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.
- Managing command execution and history in a structured way.
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": {
"babashka-mcp-server-bmorphism": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-babashka-mcp-server-bmorphism"
]
}
}
}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": {
"babashka-mcp-server-bmorphism": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-babashka-mcp-server-bmorphism"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"babashka-mcp-server-bmorphism": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-babashka-mcp-server-bmorphism"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"babashka-mcp-server-bmorphism": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-babashka-mcp-server-bmorphism"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"babashka-mcp-server-bmorphism": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-babashka-mcp-server-bmorphism"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"babashka-mcp-server-bmorphism": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-babashka-mcp-server-bmorphism"
]
}
}
}FAQ
**What is Babashka?**
Babashka is a native Clojure interpreter for scripting, allowing you to run Clojure code quickly and easily.
**How do I install Babashka?**
You can install Babashka using Homebrew on macOS, a bash script on Linux, or Scoop on Windows.
**Can I run Babashka scripts without the server?**
Yes, Babashka can be run independently without the MCP server for simple scripting tasks.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1133,"uuid":"6fb34e3a-ef21-48f7-8089-06e9eeafe78a","name":"babashka-mcp-server","title":"Babashka MCP Server","description":"A Model Context Protocol server for interacting with Babashka, a native Clojure interpreter for scripting","avatar_url":"https://avatars.githubusercontent.com/u/1236584?v=4","created_at":"2025-01-28T02:33:49.294Z","updated_at":"2025-02-23T07:12:48.800Z","status":"created","author_name":"bmorphism","author_avatar_url":"https://avatars.githubusercontent.com/u/1236584?v=4","tags":"babashka,mcp-server,clojure","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/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"}]]}]