Skip to main content

Mixpeek MCP server (Python, stdio) auto-mapped from OpenAPI

Project description

Mixpeek MCP Server

Mixpeek MCP Server

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 Authorization and X-Namespace headers
  • Includes rate limits, timeouts, and redacted logs
  • Ships with Docker and simple configuration

Quickstart

  1. Install

Python (PyPI):

# global (recommended)
pipx install mixpeek-mcp

# or in a venv
python -m venv .venv && source .venv/bin/activate
pip install mixpeek-mcp

npm (Node):

# run once
npx @mixpeek/mcp

# or install globally
npm i -g @mixpeek/mcp

Homebrew (macOS):

# tap and install (once the tap is live)
brew tap mixpeek/tap https://github.com/mixpeek/homebrew-tap
brew install mixpeek-mcp

# temporary local formula (dev/testing):
brew install --build-from-source Formula/mixpeek-mcp.rb
  1. 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: Default https://api.mixpeek.com
  • MIXPEEK_OPENAPI_URL: Defaults to <API_BASE>/openapi.json (or /docs/openapi.json)
  • MIXPEEK_NAMESPACE: Optional namespace value to send via X-Namespace
  • MCP_RATE_MAX_CALLS: Default 20 per MCP_RATE_PER_SECONDS
  • MCP_RATE_PER_SECONDS: Default 10
  • MCP_CONNECT_TIMEOUT: Default 5
  • MCP_READ_TIMEOUT: Default 30
  1. Run locally (stdio)
# PyPI
mixpeek-mcp

# from source
python server.py

# npm
mixpeek-mcp

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

Or pull and run (once published):

docker run --rm -it \
  -e MIXPEEK_API_KEY=sk_... \
  -e MIXPEEK_NAMESPACE=your_namespace \
  ghcr.io/mixpeek/mcp:latest

Distribution

  • npm: @mixpeek/mcphttps://www.npmjs.com/package/@mixpeek/mcp
  • PyPI: mixpeek-mcphttps://pypi.org/project/mixpeek-mcp/ (publish pending)
  • Docker Hub: mixpeek/mcp (pending push), GHCR: ghcr.io/mixpeek/mcp (pending push)
  • Homebrew: mixpeek/tap/mixpeek-mcp (tap repo to be created)

Submit to Docker MCP Registry

We prepared registry.json compatible with the Official Docker MCP Registry. To submit:

  1. Fork the registry and create a new entry under the appropriate directory per their CONTRIBUTING guide.
  2. Include our registry.json (update Docker image reference if you publish under a different org/tag).
  3. Open a PR. Upon approval, it will appear in the MCP catalog and Docker Desktop's MCP Toolkit.

Configuration

Required for write-protected endpoints:

  • MIXPEEK_API_KEY: Authorization: Bearer <key>

Optional:

  • MIXPEEK_NAMESPACE: sets X-Namespace for isolation
  • MIXPEEK_API_BASE: defaults to https://api.mixpeek.com; testing: https://server-xb24.onrender.com
  • MIXPEEK_OPENAPI_URL: defaults to <API_BASE>/openapi.json (or /docs/openapi.json)
  • MCP_RATE_MAX_CALLS / MCP_RATE_PER_SECONDS: simple token bucket
  • MCP_CONNECT_TIMEOUT / MCP_READ_TIMEOUT: request timeouts

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/body envelope
  • Forwards requests to Mixpeek with configured headers
  • Provides small allowlist (configurable) and redacts secrets in logs

Testing

Unit tests:

pip install -r requirements.txt
pytest -q

Live test (optional):

export LIVE_MIXPEEK_API_KEY=sk_...
export LIVE_MIXPEEK_OPENAPI_URL=https://server-xb24.onrender.com/docs/openapi.json
export LIVE_MIXPEEK_API_BASE=https://server-xb24.onrender.com
pytest -q tests/test_live_integration.py

Using with MCP clients

  • This server uses MCP stdio transport and the official server interface, compatible with common MCP clients.
  • Start the server, then point your MCP client to the stdio command (mixpeek-mcp).

References

  • Mixpeek docs: https://docs.mixpeek.com/overview/introduction
  • Mixpeek OpenAPI: https://api.mixpeek.com/docs/openapi.json
  • MCP overview: https://modelcontextprotocol.io/docs/getting-started/intro

Notes

  • For production hosting, front with HTTPS, add SSO/session issuance, per-tenant rate limits, and audit logs without bodies/headers. Keep local stdio as the default; hosted HTTP/SSE can be added later.

Project details


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.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mixpeek_mcp-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file mixpeek_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: mixpeek_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for mixpeek_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c2a506923a16197893e973c0ab1b25a449f5156bc51e75aa43692dd0b0642a20
MD5 fdb311a40af21f8bcb4e9ce68e829195
BLAKE2b-256 82db20634ec6126b334b70b9b168a980440a21f955e17901008c2d9aa32293e0

See more details on using hashes here.

File details

Details for the file mixpeek_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mixpeek_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for mixpeek_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1521109fb58341941492d2f0a898add9b4f9ef205f857f6ea232e36c741d8de6
MD5 17ba540ad9ac4eb758fe7346a53db814
BLAKE2b-256 89502a69cc73ee2456e0a332180b28ecece03a5f881315c51fd1bb01c5d2126b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page