Skip to main content
Glama

FastAPI MCP Server

by DavidHolguin
n8n.py510 B
import httpx from app.config import settings async def trigger_webhook(webhook_path: str, data: dict, headers: dict | None = None): url = f"{settings.N8N_WEBHOOK_BASE.rstrip('/')}/{webhook_path.lstrip('/')}" async with httpx.AsyncClient(timeout=120) as client: r = await client.post(url, json=data, headers=headers or {}) r.raise_for_status() return {"status": r.status_code, "data": (r.json() if r.headers.get("content-type","{}").startswith("application/json") else r.text)}

Latest Blog Posts

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/DavidHolguin/mcpEAM'

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