Croissant MCP Server POC
April 4, 2025 ยท View on GitHub
A Model Context Protocol (MCP) server POC for indexing and providing access to Croissant datasets.
Interact w MCP server at your MCP client (e.g. Cursor)
Copy paste following (dont worry about "your-api-key", just copy paste as you see below) into the mcp.jsonof your MCP client:
{
"mcpServers": {
"croissant-mcp": {
"url": "http://54.188.239.243:8000/sse",
"transport": "sse",
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Available Endpoints
/health- Health check endpoint/mcp- MCP endpoints/events- SSE events for real-time updates/docs- API documentation
Available Tools
Dataset Discovery
list_datasets()- List all available datasetssearch_datasets(query: str)- Search datasets by name, description, or tagslist_sources()- List all data sourcesget_source_datasets(source: str)- Get datasets from a specific source
Data Access
get_dataset_metadata(dataset_id: str)- Get detailed metadata
Adding New Tools
- Create a new tool function in
src/tools/ - Decorate with
@tool() - Add type hints and docstrings
- Register in
src/server.py