Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mixpeek/mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Mixpeek MCP Server (Python)
A lightweight, production-friendly Model Context Protocol (MCP) server for Mixpeek that:
- Auto-loads Mixpeek's OpenAPI spec and exposes endpoints as MCP tools
- Supports local and hosted use (bring-your-own API key)
- Injects
AuthorizationandX-Namespaceheaders - Includes rate limits, timeouts, and redacted logs
- Ships with Docker and simple configuration
Quickstart
- Install
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt- Configure (env or your MCP client secret store)
cp env.sample .env
# edit as neededEnv vars:
MIXPEEK_API_KEY: Your Mixpeek API key (optional if endpoints don't require auth)MIXPEEK_API_BASE: Defaulthttps://api.mixpeek.com(orhttps://server-xb24.onrender.comfor testing)MIXPEEK_OPENAPI_URL: Defaults to<API_BASE>/openapi.json(or/docs/openapi.json)MIXPEEK_NAMESPACE: Optional namespace value to send viaX-NamespaceMCP_RATE_MAX_CALLS: Default20perMCP_RATE_PER_SECONDSMCP_RATE_PER_SECONDS: Default10MCP_CONNECT_TIMEOUT: Default5MCP_READ_TIMEOUT: Default30
- Run locally (stdio)
python server.pyYour MCP client (e.g., Claude Desktop) can attach to this server via stdio.
Docker
docker build -t mixpeek-mcp:latest .
docker run --rm -it \
-e MIXPEEK_API_KEY=sk_... \
-e MIXPEEK_NAMESPACE=your_namespace \
mixpeek-mcp:latestHow it works
- Loads OpenAPI spec and maps GET/POST JSON endpoints to tools using
operationId - Tool arguments accept top-level query parameters or a
query/bodyenvelope - Forwards requests to Mixpeek with configured headers
- Provides small allowlist (configurable) and redacts secrets in logs
References
- Mixpeek docs:
https://docs.mixpeek.com/overview/introduction - Mixpeek OpenAPI:
https://server-xb24.onrender.com/docs/openapi.json
Notes
- For production hosting, front with HTTPS, add SSO/session issuance, per-tenant rate limits, and audit logs without bodies/headers. Keep the local stdio server as the default, hosted as optional.