An MCP server for interacting with the Hugging Face Dataset Viewer API, providing capabilities to browse and analyze datasets hosted on the Hugging Face Hub.
dataset://
URI scheme for accessing Hugging Face datasetsThe server provides the following tools:
validate
dataset
: Dataset identifier (e.g. 'stanfordnlp/imdb')auth_token
(optional): For private datasetsget_info
dataset
: Dataset identifierauth_token
(optional): For private datasetsget_rows
dataset
: Dataset identifierconfig
: Configuration namesplit
: Split namepage
(optional): Page number (0-based)auth_token
(optional): For private datasetsget_first_rows
dataset
: Dataset identifierconfig
: Configuration namesplit
: Split nameauth_token
(optional): For private datasetsget_statistics
dataset
: Dataset identifierconfig
: Configuration namesplit
: Split nameauth_token
(optional): For private datasetssearch_dataset
dataset
: Dataset identifierconfig
: Configuration namesplit
: Split namequery
: Text to search forauth_token
(optional): For private datasetsfilter
dataset
: Dataset identifierconfig
: Configuration namesplit
: Split namewhere
: SQL WHERE clause (e.g. "score > 0.5")orderby
(optional): SQL ORDER BY clausepage
(optional): Page number (0-based)auth_token
(optional): For private datasetsget_parquet
dataset
: Dataset identifierauth_token
(optional): For private datasetsgit clone https://github.com/privetin/dataset-viewer.git
cd dataset-viewer
# Create virtual environment
uv venv
# Activate virtual environment
# On Unix:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate
# Install in development mode
uv add -e .
HUGGINGFACE_TOKEN
: Your Hugging Face API token for accessing private datasetsAdd the following to your Claude Desktop config file:
On Windows: %APPDATA%\Claude\claude_desktop_config.json
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"dataset-viewer": {
"command": "uv",
"args": [
"run",
"dataset-viewer"
]
}
}
}
{
"dataset": "stanfordnlp/imdb"
}
{
"dataset": "stanfordnlp/imdb"
}
{
"dataset": "stanfordnlp/imdb",
"config": "plain_text",
"split": "train",
"query": "great movie"
}
{
"dataset": "stanfordnlp/imdb",
"config": "plain_text",
"split": "train",
"where": "label = 'positive'",
"orderby": "text DESC",
"page": 0
}
{
"dataset": "stanfordnlp/imdb",
"config": "plain_text",
"split": "train"
}
MIT License - see LICENSE for details
{
"mcpServers": {
"dataset-viewer": {
"env": {},
"args": [
"run",
"dataset-viewer"
],
"command": "uv"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.