croissant-validation
Validates MLCommons Croissant dataset metadata (JSON-LD) for schema compliance, as a stateless MCP server.
README
🥐 croissant-validation
A stateless MCP server for validating MLCommons Croissant dataset metadata — built as a working demonstration of the MCP 2026-07-28 specification, the revision that made the Model Context Protocol stateless.
Live endpoint: https://croissant-validation.jetty.bot/mcp
Why this exists
The 2026-07-28 spec removed the initialize/notifications/initialized handshake and the Mcp-Session-Id header. Every request is now self-contained: protocol version and client capabilities travel in _meta, and servers advertise themselves via server/discover. That means an MCP server can run on plain serverless functions behind any load balancer — no sticky sessions, no shared session store.
This repo is exactly that: the MCP Python SDK v2 (mcp==2.0.0, released alongside the spec) serving Croissant validation from Vercel serverless functions. Validation is performed by the official mlcroissant library — the same checks as the MLCommons croissant-validator, previously hosted in the mlcbakery MCP server.
Tools
| Tool | Description |
|---|---|
validate_croissant |
Validate a Croissant JSON-LD document (object or JSON string) against the Croissant schema. Returns per-check results, blocking errors, and non-blocking warnings. |
validate_croissant_url |
Fetch metadata from a URL (e.g. a Hugging Face dataset's /croissant endpoint) and validate it. |
pdf_to_croissant |
Generate Croissant metadata from an academic paper: give it a PDF URL and a Jetty agent in an isolated sandbox reads the paper, extracts dataset metadata, writes croissant.json, and validates it — the MCP version of mlcroissant.jetty.bot. Runs take 2–5 minutes. |
croissant_run_status |
Poll a running pdf_to_croissant job. Done when status is completed and croissant.json is in files. |
croissant_run_result |
Fetch an output file from a completed run — croissant.json comes back parsed and re-validated by this server's own validator. |
The generation tools mirror the API flow of jettyio/pdf2croissant (upload → runbook launch → trajectory poll → file download) and vendor its runbook verbatim. They need a JETTY_API_TOKEN_PDF2CROISSANT environment variable; without it, the validation tools still work — validation is pure and stateless.
Connect
Claude Code:
claude mcp add --transport http croissant-validator https://croissant-validation.jetty.bot/mcp
Or any MCP client that speaks Streamable HTTP — clients on the 2025-era protocol still work; the SDK answers the legacy handshake alongside server/discover.
One raw stateless request
No handshake — a single POST does everything:
curl -sS https://croissant-validation.jetty.bot/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2026-07-28' \
-d '{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {
"name": "validate_croissant_url",
"arguments": {"url": "https://huggingface.co/api/datasets/mnist/croissant"},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}'
The params._meta envelope replaces the old initialize handshake — the protocol version and client capabilities ride along on every request instead of being negotiated up front. (The server rejects 2026-07-28 requests without it.)
Development
uv sync
uv run pytest -q # validation + stateless HTTP round-trip tests
uv run uvicorn croissant_mcp.server:app --reload # local server on :8000
Layout:
croissant_mcp/validation.py— mlcroissant-backed validation (JSON well-formedness → Croissant schema; warnings surfaced frommlcroissant's issue tracker)croissant_mcp/server.py—MCPServerdefinition, tools, landing page, and the stateless Streamable HTTP ASGI app (stateless_http=True, json_response=True)main.py— Vercel entrypoint (the Python backend builder serves the ASGI app on all routes)examples/— a valid Croissant file (Titanic, from the MLCommons repo) and an invalid variant (invalid-not-a-dataset.json, missing its@type)
Record-set generation checks (actually materializing data) are intentionally out of scope here — they can download arbitrarily large files, which doesn't belong in a serverless request. Schema validation is the static contract check.
Deploy
Deployed on Vercel (Python runtime, Fluid Compute). The one serverless-specific consideration: streamable_http_app() starts its session manager via ASGI lifespan, which Vercel now runs. In stateless mode there is no cross-request state, so cold starts and horizontal scaling are free.
Roadmap
- Wire into Jetty workflows as the validation step for an MCP-native version of PDF → Croissant.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。