Dataset Viewer MCP Server
MCP server for Hugging Face dataset viewer
Overview
Dataset Viewer is an MCP server designed for interacting with the Hugging Face Dataset Viewer API, enabling users to browse, filter, and analyze datasets hosted on the Hugging Face Hub.
To use Dataset Viewer, clone the repository from GitHub, set up a virtual environment, and run the server. You can then interact with the API to validate datasets, retrieve information, and perform searches.
- Access datasets using the
dataset://URI scheme. - Support for dataset configurations and splits. - Paginated access to dataset contents. - Authentication handling for private datasets. - Search and filter capabilities for dataset contents. - Dataset statistics and analysis tools.
- Validating the existence and accessibility of datasets.
- Retrieving detailed information about specific datasets.
- Searching for specific text within datasets.
- Filtering dataset rows based on SQL-like conditions.
- Downloading entire datasets in Parquet format.
Add to your AI client
Use these steps to connect Dataset Viewer MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"dataset-viewer-privetin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dataset-viewer-privetin"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"dataset-viewer-privetin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dataset-viewer-privetin"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"dataset-viewer-privetin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dataset-viewer-privetin"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"dataset-viewer-privetin": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dataset-viewer-privetin"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"dataset-viewer-privetin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dataset-viewer-privetin"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"dataset-viewer-privetin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dataset-viewer-privetin"
]
}
}
}FAQ
What is the purpose of the Dataset Viewer?
The Dataset Viewer allows users to easily interact with datasets on the Hugging Face Hub, providing tools for browsing, filtering, and analyzing data.
Is there a cost to use the Dataset Viewer?
No, the Dataset Viewer is free to use.
What are the prerequisites for using the Dataset Viewer?
You need Python 3.12 or higher and the `uv` package for installation.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1121,"uuid":"81d750d5-6c2c-4759-85e1-2f41279570a1","name":"dataset-viewer","title":"Dataset Viewer MCP Server","description":"MCP server for Hugging Face dataset viewer","avatar_url":"https://avatars.githubusercontent.com/u/81558906?v=4","created_at":"2025-01-28T02:33:11.015Z","updated_at":"2025-02-23T07:12:48.935Z","status":"created","author_name":"privetin","author_avatar_url":"https://avatars.githubusercontent.com/u/81558906?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/privetin/dataset-viewer","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"14\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-04-25 17:58:09\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]