Skip to main content
Glama
kapruka

Kapruka MCP Server

Official
by kapruka

Kapruka MCP-Server

Python-MCP-Server, der die Kapruka.com REST-API umschließt und sie als Tools für LLMs und MCP-Clients von Drittanbietern bereitstellt.

Einrichtung

# 1. Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate

# 2. Install dependencies
pip install -e ".[dev]"

# 3. Configure environment
cp .env.example .env
# Edit .env with your Kapruka API URL and key

Related MCP server: mcp-server-for-apache-ofbiz

Ausführung

# Start the MCP server (streamable HTTP, default port 8000)
python cli.py server

# Start with stdio transport (for use with MCP Inspector)
python cli.py server --stdio

# Health-check the Kapruka REST API
python cli.py ping

# List registered MCP tools
python cli.py tools

Testen mit dem MCP Inspector

npx @modelcontextprotocol/inspector python cli.py server --stdio

Projektstruktur

src/
  server.py        # FastMCP server entry point
  tools/           # One module per tool group (products, orders, …)
  api/
    client.py      # Async httpx client + error handling
  config/
    settings.py    # Env-based configuration
tests/             # pytest test suite
cli.py             # Developer CLI

Tests ausführen

pytest

Related MCP Connectors

Related MCP Servers