Data MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Data MCP Serverload gaussian_simple.vti and list components"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Data MCP Server
A Model Context Protocol (MCP) server for scientific data introspection and visualization. Provides comprehensive analysis of VTK datasets with format-specific metadata extraction and interactive 3D visualization.
โจ Features
10 MCP Tools for complete dataset analysis
Format-Adaptive Metadata - Specialized handlers for VTI, VTU, VTP formats
Interactive 3D Visualization using Trame/VTK
Memory-Efficient Architecture with automatic cleanup
Comprehensive Component Analysis with detailed statistics
Related MCP server: viznoir
๐ Quick Start
1. Setup Environment
# Clone or navigate to the project directory
cd data-mcp
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # On macOS/Linux
# .venv\Scripts\activate # On Windows
# Install dependencies
pip install -r requirements.txt
pip install -e .2. Run Basic Demo
# Test MCP server functionality
python examples/walkthrough/demo_mcp_usage.py3. Sample Data
Pre-generated VTK files in examples/sample_data/:
gaussian_simple.vti- 3D structured grid (20ร15ร12)wave_pattern.vti- Wave pattern data
4. Interactive Visualization
# Launch 3D viewer (opens at localhost:8080)
python -c "
from src.data_mcp.viewers.vtk_viewer import VTKViewer
VTKViewer.show_file('examples/sample_data/gaussian_simple.vti')
"5. Start MCP Server
# Start the MCP server (requires MCP client to connect)
python -m data_mcp.server๐ MCP Client Configuration
Connecting MCP Clients
Use the provided mcp_client_config.json to connect MCP-compatible clients:
{
"mcpServers": {
"data-mcp": {
"command": "python",
"args": ["-m", "data_mcp.server"],
"cwd": "/Users/patrick.oleary/code/AI Experiments/data-mcp",
"env": {}
}
}
}Supported MCP Clients
Claude Desktop - Anthropic's desktop application
Custom MCP applications - Built with MCP client libraries
Development tools - IDEs and testing frameworks with MCP support
Integration Steps
Copy the config to your MCP client's configuration directory
Update the
cwdpath to match your project locationRestart your MCP client to register the server
Access via client - The server will appear as "data-mcp" with 10 available tools
๐งช Testing & Examples
Comprehensive Walkthrough
# Test all 10 MCP tools with detailed output
python examples/walkthrough/manual_tool_test.py
# Test format-specific metadata adaptation
python examples/walkthrough/test_format_adaptation.pyIntegration Tests
# Full MCP workflow testing
python tests/integration/test_full_mcp_workflow.py
# Real MCP client connection test
python tests/integration/test_real_mcp_client.py๐ฏ Available MCP Tools
upload_dataset- Load and register dataset fileslist_datasets- Show all loaded datasetsquery_dataset- Get comprehensive dataset informationget_schema- Extract detailed schema informationlist_components- Show available data arrays/componentsget_component_info- Get detailed component informationget_statistics- Calculate statistics for componentsvisualize_dataset- Launch interactive 3D viewersuggest_visualizations- Get visualization recommendationsremove_dataset- Remove dataset from memory
๐ Usage Examples
Programmatic Usage
from data_mcp.formats.vtk_factory import VTKHandlerFactory
from data_mcp.core.dataset import Dataset
from data_mcp.viewers.vtk_viewer import VTKViewer
# Load dataset with format-specific handler
handler = VTKHandlerFactory.create_handler("path/to/file.vti")
dataset = Dataset("path/to/file.vti", handler)
dataset.introspect()
# Get comprehensive information
info = dataset.get_info()
components = dataset.list_components()
stats = dataset.get_statistics("temperature")
# Launch interactive viewer (convenience method)
VTKViewer.show_file("path/to/file.vti") # Opens at localhost:8080
# Or create viewer with dataset
viewer = VTKViewer(dataset=dataset)
viewer.show()MCP Client Usage
Connect via MCP client and use these tools:
Upload datasets, query metadata, analyze components
Get format-specific information (VTI/VTU/VTP)
Launch interactive 3D visualizations
Calculate detailed statistics
๐๏ธ Architecture
Format Handler Inheritance System
BaseVTKHandler - Common VTK functionality
VTKImageDataHandler (.vti) - Structured grids with spacing/dimensions
VTKUnstructuredGridHandler (.vtu) - Irregular meshes with cell analysis
VTKPolyDataHandler (.vtp) - Surface meshes with topology analysis
VTKHandlerFactory - Automatic handler selection by file extension
Supported Formats
Currently supports VTK formats with format-specific metadata:
.vti- ImageData (regular grids, voxel data).vtu- UnstructuredGrid (irregular meshes, FEM data).vtp- PolyData (surface meshes, CAD data)
Memory Management
Automatic cleanup after dataset introspection
Stored component data for efficient access
Handler recycling to prevent memory bloat
๐ Project Structure
data-mcp/
โโโ README.md # Project documentation
โโโ MCP_WALKTHROUGH.md # Comprehensive walkthrough guide
โโโ pyproject.toml # Python packaging configuration
โโโ requirements.txt # Dependencies
โโโ src/data_mcp/ # Main package
โ โโโ server.py # MCP server implementation
โ โโโ core/ # Core functionality
โ โ โโโ dataset.py # Dataset abstraction with cleanup
โ โ โโโ introspector.py # Dataset analysis engine
โ โ โโโ schema.py # Schema representation
โ โ โโโ visualizer.py # Visualization engine
โ โโโ formats/ # Format handlers (inheritance system)
โ โ โโโ base.py # Base format handler interface
โ โ โโโ vtk_base.py # Base VTK handler
โ โ โโโ vtk_imagedata.py # VTI handler (structured grids)
โ โ โโโ vtk_unstructured.py # VTU handler (irregular meshes)
โ โ โโโ vtk_polydata.py # VTP handler (surface meshes)
โ โ โโโ vtk_factory.py # Handler factory
โ โโโ viewers/ # Trame-based visualization
โ โ โโโ vtk_viewer.py # VTK 3D viewer
โ โโโ utils/ # Utilities
โ โโโ file_utils.py # File handling
โโโ examples/ # Usage examples
โ โโโ basic_usage.py # Basic programmatic usage
โ โโโ walkthrough/ # Walkthrough examples
โ โ โโโ demo_mcp_usage.py # Basic MCP demo
โ โ โโโ manual_tool_test.py # All 10 tools test
โ โ โโโ test_format_adaptation.py # Format adaptation demo
โ โโโ sample_data/ # Sample VTK files
โ โโโ gaussian_simple.vti # 3D structured grid
โ โโโ wave_pattern.vti # Wave pattern data
โโโ tests/ # Test suite
โโโ integration/ # Integration tests
โโโ test_formats/ # Format handler tests๐ง Current Status
โ 10/10 MCP Tools Working (100% success rate)
โ Format-Adaptive Metadata for VTI/VTU/VTP files
โ Memory-Efficient Architecture with automatic cleanup
โ Interactive 3D Visualization via Trame/VTK
โ Production-Ready for scientific data workflows
๐ Documentation
MCP_WALKTHROUGH.md - Complete step-by-step walkthrough
examples/walkthrough/ - Hands-on examples and demos
USAGE_GUIDE.md - Basic usage guide
๐ค Contributing
This project demonstrates a production-ready MCP server with:
Format-adaptive metadata extraction
Memory-efficient architecture
Comprehensive testing suite
Interactive visualization capabilities
For extending to new formats, follow the inheritance pattern established in the VTK handlers.
๐ License
MIT License - see LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/patrickoleary/data-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server