LocalData MCP Server
Allows connecting to and querying DuckDB databases via SQL, with memory-bounded streaming for analytical workloads.
Supports connecting to Elasticsearch search engine and executing queries.
Enables connecting to InfluxDB time series databases for query and analysis.
Supports reading and manipulating LibreOffice Calc (.ods) spreadsheet files as database tables.
Supports reading, manipulating, and exporting graph data in Mermaid diagram file format.
Allows connecting to MongoDB document databases and executing queries.
Allows connecting to MySQL databases and executing SQL queries.
Supports connecting to Neo4j graph databases for querying and graph operations.
Allows connecting to PostgreSQL databases and executing SQL queries with streaming.
Provides Prometheus-format metrics output for monitoring server performance.
Enables connecting to Redis key-value stores and performing operations.
Supports connecting to SQLite databases and querying with memory-bounded streaming.
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., "@LocalData MCP ServerConnect to the PostgreSQL sales database and show me the top 5 products by revenue."
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.
LocalData MCP Server
LocalData MCP gives LLM agents access to local and remote data — databases, files, graphs, and structured documents — along with a full data science toolkit for analysis and modeling. It exposes 70 MCP tools across 13 database types and 20+ file formats, with memory-bounded streaming so agents can work safely on large datasets without exceeding available RAM.
Quick Start
# Install permanently
uv tool install localdata-mcp
# Or run directly without installing
uvx localdata-mcpFirst-run note: Data science dependencies (scipy, scikit-learn, statsmodels, geopandas) total around 200 MB and are downloaded on first use. Subsequent starts reuse the cache. If your MCP client times out on the first launch, reconnect — the next start will be immediate.
Add to your MCP client configuration:
{
"mcpServers": {
"localdata": {
"command": "localdata-mcp"
}
}
}For uvx (no permanent install):
{
"mcpServers": {
"localdata": {
"command": "uvx",
"args": ["localdata-mcp"]
}
}
}Then connect to any supported source and start querying:
connect_database("sales", "postgresql", "postgresql://user:pass@localhost/db")
execute_query("sales", "SELECT product, SUM(amount) FROM orders GROUP BY product")
connect_database("records", "csv", "./records.csv")
analyze_hypothesis_test("records", "SELECT amount, region FROM data_table", column="amount", group_column="region")A single-table file — CSV, TSV, JSON, XML, INI, Parquet, Feather, Arrow — is
loaded into one table named data_table, whatever the connection is called. Run
describe_database(name) after connecting if you are unsure what a source
exposes; multi-sheet spreadsheets and databases keep their own table names.
Related MCP server: MCP Data Science
Feature Overview
Core Database (8 tools)
Connect, query, and inspect databases and files. All queries execute within configurable memory limits (default 2 GB) with automatic chunked streaming for large result sets.
Tool | Description |
| Open a connection to any supported database or file |
| Close a connection |
| List active connections |
| Run SQL with streaming, chunking, and preflight mode |
| Show schema and table list |
| Column types, indexes, row count |
| Locate a table across all active connections |
| Estimate query cost before execution |
Streaming and Memory (9 tools)
Tool | Description |
| Retrieve the next chunk of a streamed result |
| Fetch a specific chunk by row range |
| Batch-fetch multiple chunks in one call |
| View and configure memory limits |
| Check active streams and buffer usage |
| Free memory from a specific buffer |
| Rich metadata for a completed query |
| Cancel a running or buffered query |
| Column statistics, null rates, and quality metrics |
Tree / Structured Data (10 tools)
Navigate and edit TOML, JSON, and YAML files as navigable trees. Supports full CRUD with auto-creation of ancestor nodes and round-trip export to any supported format.
Tool | Description |
| Navigate the tree |
| Create or remove nodes |
| Read and write properties |
| List key-value pairs at a node |
| Relocate a node within the tree |
| Export as TOML, JSON, YAML, or Markdown |
Graph (7 tools)
Work with DOT, GML, GraphML, and Mermaid files as directed multigraphs. Supports full CRUD on nodes and edges, shortest-path and all-paths queries, structural statistics, and multi-format export.
Tool | Description |
| Traverse from a node |
| Manage edges |
| Shortest path or all paths between two nodes |
| Node/edge counts, density, DAG validation |
| Export as DOT, GML, GraphML, Mermaid, or Markdown |
Node-level operations reuse the tree tools above: get_node, set_node, delete_node, list_keys, get_value, set_value, and delete_key detect a graph connection and treat their path argument as a node ID. get_children and move_node are tree-only.
Search and Transform (2 tools)
Tool | Description |
| Regex search across query results |
| Apply column transformations to result sets |
Schema and Audit (3 tools)
Tool | Description |
| Export schema as JSON Schema, Python dataclasses, TypeScript interfaces, or SQL DDL |
| Recent query execution history |
| Recent error log |
System (2 tools)
Tool | Description |
| Verify API backward compatibility |
| Prometheus metrics text. Registered only when metrics collection is enabled, which is the default |
Data Science (12 tools)
Run statistical analysis, modeling, and pattern detection directly on query results from any connected source.
Tool | Domain |
| Statistical Analysis |
| Statistical Analysis |
| Statistical Analysis |
| Regression and Modeling |
| Regression and Modeling |
| Pattern Recognition |
| Pattern Recognition |
| Pattern Recognition |
| Time Series |
| Time Series |
| Business Intelligence |
| Business Intelligence |
Supported Data Sources
Databases
Type | Engines |
SQL | SQLite, PostgreSQL, MySQL |
SQL (analytical) | DuckDB ( |
SQL (enterprise) | Oracle, MS SQL Server ( |
Document | MongoDB, CouchDB ( |
Key-value | Redis ( |
Search | Elasticsearch ( |
Time series | InfluxDB ( |
Graph | Neo4j ( |
RDF / SPARQL | Turtle (.ttl), N-Triples (.nt), remote SPARQL endpoints |
File Formats
Category | Formats |
Tabular | CSV, TSV |
Structured | JSON, YAML, TOML, XML, INI |
Spreadsheet | Excel (.xlsx, .xls), LibreOffice Calc (.ods), Apple Numbers (.numbers) |
Analytical | Parquet, Feather, Arrow, HDF5 |
Graph | DOT (Graphviz), GML, GraphML, Mermaid |
RDF | Turtle (.ttl), N-Triples (.nt) |
Multi-sheet spreadsheets are supported: each sheet becomes a separately queryable table. To load one sheet only, pass its name as the fourth argument to connect_database — connect_database("q1", "excel", "./report.xlsx", "Q1 Results"). Use "excel" for both .xlsx and .xls; "xlsx" is not a connection type.
Data Science Domains
Statistical Analysis — t-tests, chi-squared, Mann-Whitney, Kruskal-Wallis, and related hypothesis tests; one-way ANOVA with post-hoc tests; Cohen's d, eta-squared, and other effect size measures.
Regression and Modeling — linear, polynomial, logistic, ridge, lasso, and elastic net regression; model evaluation with R², RMSE, MAE, and classification metrics; automated feature selection.
Pattern Recognition — K-means, DBSCAN, and hierarchical clustering; anomaly detection via isolation forest, LOF, and one-class SVM; dimensionality reduction with PCA, t-SNE, and UMAP.
Time Series — decomposition, stationarity testing, autocorrelation analysis; ARIMA and ETS forecasting; change point detection; multivariate analysis with VAR, Granger causality, and cointegration tests. forecast_time_series accepts method="arima" or method="ets"; the SARIMA and ensemble models in the domain package are not reachable through an MCP tool.
Business Intelligence — A/B test statistical analysis; RFM customer segmentation; cohort analysis, CLV modeling, and funnel analysis.
Geospatial — distance and coordinate calculations, spatial joins, interpolation, and network analysis.
Optimization — linear programming, constrained optimization, assignment problems, and network optimization.
Sampling and Estimation — bootstrap confidence intervals, Bayesian estimation, Monte Carlo simulation, and stratified sampling.
Claude Code plugin
The repository doubles as a Claude Code plugin. Its manifest (.claude-plugin/plugin.json) registers the localdata MCP server via uvx localdata-mcp and ships 18 skills and 11 agents that drive the tools above. See the plugin page for how to install it and how to invoke a skill.
Upgrading from 2.0.0: graph-explore is now graph-data-explore and graph-analyst is now graph-data-analyst, and every skill moved one directory deeper. Invoking an old name silently does nothing — the changelog lists the steps.
Skills are grouped by domain under skills/:
Group | Skills |
|
|
|
|
|
|
|
|
|
|
Agents in agents/ take on longer analyses that span several tools:
Agent | Scope |
| Profiles an unfamiliar dataset and reports schema, quality, and candidate analyses |
| Composes multi-step pipelines across domains when the right approach is not obvious |
| Hypothesis tests, ANOVA, effect sizes, sampling design, bootstrap estimation |
| Clustering, anomaly detection, dimensionality reduction, regression modeling |
| Decomposition, stationarity testing, ARIMA/ETS choice, forecasts with uncertainty bounds |
| A/B tests, cohort analysis, CLV, attribution, funnels |
| Centrality, community detection, path finding, graph export |
| Coordinate systems, distances, spatial clustering, accessibility |
| Statistical process control, optimization, capacity planning |
| Power analysis, assumption documentation, reproducible reporting |
| Finds and prepares public reference datasets to enrich your data |
Architecture
One uniform call shape — every analysis tool takes a connection name, a SQL query, and the column names it should work on. There is no separate load step and no data-frame argument: the query is the data selection, so the same call works against a CSV file and a PostgreSQL table
Named methods, sensible defaults — the statistical procedure is chosen by name (
method="dbscan",test_type="ttest_ind") and every method parameter has a default, so a call that names only the columns still runs. Thresholds such asalphaandcontaminationare numeric parameters, not inferred from intentStreaming-first execution — query results are chunked and buffered rather than materialized whole.
execute_queryreturns the first chunk plus aquery_id, andnext_chunkwalks the rest, so a result larger than the configured memory ceiling (default 2 GB) is still workableSelf-describing query results —
execute_queryreturns row counts, memory state, data-quality signals, and ready-to-runnext_chunkcalls alongside the rows, so an agent can decide what to do next without a second round trip
Configuration
LocalData MCP reads settings from a YAML config file, from environment variables, or from both; environment variables win. The defaults work for most cases. The most frequently changed variables:
Variable | Default | Description |
|
| Memory ceiling for query results, in MB |
|
| Maximum simultaneous database connections |
|
| Rows per streaming chunk |
|
| Seconds a streaming buffer is kept before expiry |
|
| Confine file access to the configured |
| unset | Path to a YAML config file, bypassing config-file discovery |
Set them in your MCP server configuration under "env", or in a .env file in the working directory. The full set — staging, memory budget, disk budget, per-database LOCALDATA_DB_<NAME>_* definitions — is documented in the configuration reference.
Documentation
Getting started — install, configure an MCP client, run the first queries
Claude Code plugin — install the plugin, invoke a skill, what each skill and agent does
Tools reference — every tool with parameters, return shape, and composition hints
Configuration reference — config file discovery, every environment variable, every default
Data sources — connection strings and quirks per database and file format
Data science domains — what each of the eight analytical domains does
Error classification — structured error types, retryability, and suggested recovery
Docker usage — container deployment and configuration
Troubleshooting — common failures and their fixes
Rendered documentation — the same pages, searchable
Development
git clone https://github.com/ChrisGVE/localdata-mcp.git
cd localdata-mcp
uv sync --all-extras
uv run pytest tests/ --ignore=tests/integrationThat command collects 2,312 unit tests. A further 357 integration tests live under tests/integration/ and need live database services — start them with docker-compose up -d, then run uv run pytest tests/integration/. The enterprise-scale suite inside that set loads 100K rows into each of 7 database engines and is by far the slowest part.
Contributing
Contributions are welcome. Please read CONTRIBUTING.md before submitting a pull request.
License
Apache License 2.0 — see LICENSE 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.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides persistent SQLite-based memory and unified tool abstraction for AI agents to support long-term context and complex tool chaining. It enables automated code analysis, file operations, and environment discovery through a standardized interface.51MIT
- Alicense-qualityDmaintenanceProvides 102 tools for end-to-end data science pipelines, enabling data loading, cleaning, visualization, modeling, and reporting via natural language.2MIT
- AlicenseBqualityCmaintenanceEnables AI agents to interact with local SQLite databases with full CRUD, schema introspection, foreign key relations, generated columns, and multi-format import/export (CSV, JSON, XLSX) through natural language.2617MIT
- Alicense-qualityAmaintenanceEnables AI scientists to access over 1000 machine learning models, datasets, APIs, and scientific packages for data analysis, knowledge retrieval, and experimental design from any large language model.1,619Apache 2.0
Related MCP Connectors
Give your agent web search and authoritative datasets: S&P Global, FRED, OECD, SimilarWeb & more.
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/ChrisGVE/localdata-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server