Skip to main content
Glama

Mixpanel MCP Connector

app.py835 B
from fastapi import FastAPI, HTTPException import os, uuid app = FastAPI(title="Mixpanel MCP Bridge (stub)") @app.get("/") def root(): return {"ok": True, "service": "mixpanel-mcp"} @app.get("/health") def health_alt(): return {"ok": True} @app.post("/tools/search") async def tools_search(payload: dict): event = payload.get("event") allowed = os.getenv("ALLOWED_EVENTS", "") allowed_events = {e for e in allowed.split(",") if e} if allowed else None if allowed_events is not None and event not in allowed_events: raise HTTPException(status_code=404, detail="Unknown event") return {"id": str(uuid.uuid4()), "title": f"Search: {event}", "text": f"(stub) results for {event}"} @app.post("/tools/fetch") async def tools_fetch(payload: dict): return {"objects": payload.get("objectIds", [])}

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/magnitudecontact-eng/mixpanel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server