Mixpeek MCP server (Python, stdio) auto-mapped from OpenAPI
Project description
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 needed
Env 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.py
Your 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:latest
How 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mixpeek_mcp-0.1.0.tar.gz
(8.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mixpeek_mcp-0.1.0.tar.gz.
File metadata
- Download URL: mixpeek_mcp-0.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36bacdbb2b4e7e45936caad98b04c1ca266168a434c809da81fdea3540976d2c
|
|
| MD5 |
2321a059a60a7263ad17f86510a9801a
|
|
| BLAKE2b-256 |
83d03ef5064285d2334defa1dbc5353ef47f6e4edc601a8a8a861b3b3b80c8f2
|
File details
Details for the file mixpeek_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mixpeek_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97f329f979ed890fd09d7fd46f03b24541b5b9eb53d812b444655eceb0f18bab
|
|
| MD5 |
9d2ae1cfcfc19b67ac77c6dd8f5535a4
|
|
| BLAKE2b-256 |
c1c14b8beeeab9ee48c020f71be77fef9aafbf14a9204bf28001a21b8d88cdba
|