DIAMCP
An all-in-one MCP server exposing file operations, web search, git operations, shell commands, code execution, and custom tools via HTTP. Designed for llama.cpp webui integration.
What is DIAMCP?
DIAMCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to all-in-one mcp server exposing file operations, web search, git operations, shell commands, code execution, and custom tools via http. designed for llama.cpp webui integration.
An all-in-one MCP server exposing file operations, web search, git operations, shell commands, code execution, and custom tools via HTTP. Designed for llama.cpp webui integration.
This server falls under the Developer Tools and File Systems categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- An all-in-one MCP server exposing file operations, web searc
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx diamcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use DIAMCP
diaMCP is an all-in-one MCP server delivered as a Docker container that exposes 21+ tools via HTTP, covering file system operations, web search and fetch, Git operations, shell command execution, Python code evaluation, and custom user-defined tools. It is specifically designed for integration with llama.cpp's webui MCP proxy feature, allowing locally-running LLMs to gain agentic capabilities like reading files, running code, and searching the web — without requiring cloud API access.
Prerequisites
- Docker and Docker Compose installed
- Windows users: Docker Desktop with WSL2 and Ubuntu
- llama.cpp built with webui and MCP proxy support (for the primary use case)
- curl or PowerShell for the one-line installer
Install diaMCP (Linux/macOS)
Run the one-line installer script which downloads, configures, and starts the diaMCP Docker container.
curl -fsSL https://raw.githubusercontent.com/chartrambiz/diaMCP/main/install.sh | shInstall diaMCP (Windows PowerShell)
On Windows, use the PowerShell installer instead.
irm https://raw.githubusercontent.com/chartrambiz/diaMCP/main/install.ps1 | iexManual setup with Docker Compose
Alternatively, clone the repository and use Docker Compose to build and start the server yourself.
git clone https://github.com/chartrambiz/diaMCP.git
cd diaMCP
docker compose up --build -dVerify the server is running
The server listens on port 8000 by default. Confirm it is up by checking the health endpoint.
curl http://localhost:8000/mcpConnect llama.cpp webui
Start llama-server with the webui and MCP proxy flags, then in the webui MCP Settings panel enable the proxy and set the MCP server URL.
llama-server --webui-mcp-proxy -m model.gguf -c 32768 --host 0.0.0.0 --port 8080Add custom tools (optional)
Place Python files using the diaMCP decorator pattern in ./workspace/tools/ and restart the container to expose your own tools to the LLM.
./restart.shDIAMCP Examples
Client configuration
Environment variable configuration for the diaMCP Docker container with custom host and port settings.
{
"mcpServers": {
"diamcp": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "MCP_HOST=0.0.0.0",
"-e", "MCP_PORT=8000",
"-p", "8000:8000",
"-v", "./workspace:/workspace",
"chartrambiz/diamcp:latest"
]
}
}
}Prompts to try
Example prompts to use with diaMCP connected to a local LLM via llama.cpp webui.
- "Read the file at /workspace/data.csv and summarize its contents"
- "Search the web for the latest Python 3.13 release notes"
- "Clone the repository at https://github.com/example/repo into /workspace/repo"
- "Run a Python script to calculate the Fibonacci sequence up to 1000"
- "List all files in /workspace and show me which ones are larger than 1MB"Troubleshooting DIAMCP
Container starts but MCP tools are not accessible in llama.cpp webui
Ensure the MCP proxy is enabled in the llama.cpp webui MCP Settings panel and the URL is set to http://localhost:8000/mcp. Also confirm the container is running with 'docker ps' and that port 8000 is not blocked by a firewall.
File operations fail with permission denied errors
The workspace directory defaults to UID 1000. If your host user has a different UID, edit docker-compose.yml to add 'user: "$(id -u):$(id -g)"' under the service definition, then restart the container.
run_command tool refuses to execute a shell command
diaMCP blocks commands matching dangerous patterns for security. Review the blocked patterns with the get_dangerous_patterns tool, and if your use case is legitimate, use manage_approved to whitelist specific commands.
Frequently Asked Questions about DIAMCP
What is DIAMCP?
DIAMCP is a Model Context Protocol (MCP) server that all-in-one mcp server exposing file operations, web search, git operations, shell commands, code execution, and custom tools via http. designed for llama.cpp webui integration. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install DIAMCP?
Follow the installation instructions on the DIAMCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with DIAMCP?
DIAMCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is DIAMCP free to use?
Yes, DIAMCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
DIAMCP Alternatives — Similar Developer Tools Servers
Looking for alternatives to DIAMCP? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up DIAMCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use DIAMCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.