Lean MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Lean MCP - Local Services Integration
Minimal MCP server for bridging AI assistants (Claude Desktop, LM Studio) to local API services.
Quick Start
Option 1: Docker (Recommended)
# Build
docker build -t lean-mcp .
# Run with stdio (for Claude Desktop)
docker run -it lean-mcp
# Run with SSE (for LM Studio)
docker run -p 8888:8888 -e MCP_TRANSPORT=sse lean-mcpOption 2: Manual
# Install dependencies
pip install -r requirements.txt
# Run with stdio (Claude Desktop)
python server.py
# Run with SSE (LM Studio)
MCP_TRANSPORT=sse python server.pyRelated MCP server: Test MCP Server
LLM Integration
Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (Mac):
{
"mcpServers": {
"lean-mcp": {
"command": "python",
"args": ["C:\\path\\to\\server.py"],
"env": {
"MODEL_SERVICE_URL": "http://localhost:8000"
}
}
}
}Or with Docker:
{
"mcpServers": {
"lean-mcp": {
"command": "docker",
"args": ["run", "-i", "lean-mcp"]
}
}
}LM Studio
Configure in Settings → Developer → MCP Servers:
{
"mcpServers": {
"lean-mcp": {
"url": "http://127.0.0.1:8888/sse"
}
}
}Start server with:
MCP_TRANSPORT=sse python server.pyAvailable Tools
Model Service Tools
get_available_models() - List available models from model service
get_model_details(model_id) - Get details for specific model
check_model_service_health() - Check model service status
iDRAC/Specific API Tools (Formatted JSON Strings)
get_chassis() - Get chassis information (hardware, power state, status)
get_system_info() - Get system details (model, CPU, memory, BIOS)
get_thermal_info() - Get temperature and fan information
get_power_info() - Get power supply and consumption data
Generic REST API Tools
call_api_endpoint(endpoint, method) - Call any REST API endpoint
call_api_with_body(endpoint, body, method) - Call API with JSON body
check_api_health() - Check if API service is available
All tools return formatted strings optimized for LM Studio consumption.
Adding New Tools
Create a new file in
tools/(e.g.,tools/database.py)Define tools with the registration function pattern:
For dictionary responses:
def register_tools(mcp_instance):
@mcp_instance.tool()
def your_tool_name(param: str) -> dict:
"""Tool description for AI"""
# Your implementation
return {"result": "data"}For string responses (easier for LM Studio to display):
def register_tools(mcp_instance):
@mcp_instance.tool()
def your_tool_name(param: str) -> str:
"""Tool description for AI"""
# Your implementation - return formatted string
return f"Result: {data}"Import and register in
server.py:
from tools import database
database.register_tools(mcp)See tools/api_example.py for complete examples of REST API tools that return strings.
Configuration
Environment variables:
Variable | Default | Description |
|
| Transport mode: |
|
| Port for SSE transport |
|
| Host binding for SSE transport |
|
| Model service API URL |
|
| Base URL for generic REST API tools |
|
| Base URL for iDRAC/specific API tools |
|
| API request timeout (seconds) |
|
| Logging level |
Docker
Build
docker build -t lean-mcp .Run Options
stdio mode (Claude Desktop):
docker run -it lean-mcpSSE mode (LM Studio):
docker run -p 8888:8888 -e MCP_TRANSPORT=sse lean-mcpWith custom model service (accessing host services):
docker run -it \
-e MODEL_SERVICE_URL=http://host.docker.internal:80 \
lean-mcpNote: Use host.docker.internal instead of localhost when accessing services on your host machine from inside Docker. Always include http:// prefix.
With host networking (access localhost services):
docker run --network=host lean-mcpProject Structure
.
├── server.py # Main MCP server
├── tools/
│ ├── __init__.py
│ └── models.py # Example tools for model service
├── Dockerfile # Container definition
├── requirements.txt # Python dependencies
└── README.md # This fileTroubleshooting
Claude Desktop: "Server exits unexpectedly"
Ensure you're using
stdiotransport (default)Use full absolute path in config
Check Python is in PATH
LM Studio: "404 Not Found"
Set
MCP_TRANSPORT=sseUse endpoint
/ssenot/mcpVerify server is running on correct port
Tools return errors
This is normal if target services aren't running
Tools handle errors gracefully
Configure
MODEL_SERVICE_URLto point to your service
Development
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run server
python server.pyLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Kaiva Bridge turns your API, database or documents into a managed MCP server for Claude, ChatGPT, Cursor and VS Code. Point it at an OpenAPI or Swagger spec, an API docs link, a cURL command, a Postman collection, a GraphQL endpoint, Postgres, MySQL, MariaDB or SQL Server, spreadsheets, PDFs and other documents, or an MCP server you already run. Bridge reads the source and proposes tools, and you choose which ones your AI client sees. No code to write and nothing to run. Connect this server and your agent does the setup for you: it lists your servers, shows one, drafts a new server from an OpenAPI spec, and refreshes a server's tools when its API changes. Free plan: 10 servers and 200,000 tool calls a month, no credit card. Pricing: https://kaiv.ai/bridge/pricing Security: https://kaiv.ai/bridge/security Docs: https://kaiv.ai/bridge/docs
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Python server implementing the Model Context Protocol that exposes tools for querying external APIs, compatible with Claude Desktop and ChatGPT Desktop.-
- FlicenseNot gradedqualityDmaintenanceA dual-transport MCP server that exposes your API as tools to LLM clients, supporting both stdio transport for local clients like Claude Desktop and HTTP/SSE transport for remote clients like OpenAI's Responses API.-
- AlicenseAqualityBmaintenanceEnables LLMs to inspect and test other MCP servers by listing and calling their tools, reading resources, and getting prompts. Supports stdio, SSE, and HTTP transports for both local and remote MCP server inspection.74 npm1MIT
- AlicenseNot gradedqualityDmaintenanceActs as a bridge between standard REST/OpenAPI web APIs and the Model Context Protocol, dynamically converting REST endpoints into MCP tools for LLM clients like Cursor, Claude Desktop, and n8n.Apache 2.0