Getting Started
Installation
Using uv (recommended)
# Install permanently
uv tool install localdata-mcp
# Update to latest version
uv tool upgrade localdata-mcp
# Or run directly without installing
uvx localdata-mcp
First install note: LocalData MCP includes data science libraries (scipy, scikit-learn, statsmodels, geopandas, ruptures) that total around 200 MB. The first install or first
uvxrun may take a minute or two while these are downloaded and cached. Subsequent runs reuse the cache and start immediately.If your LLM client times out waiting for the MCP server to start on the first run, reconnect the MCP server from your client’s interface or restart the LLM application. The dependencies will already be cached and the next start will be fast.
From source
git clone https://github.com/ChrisGVE/localdata-mcp.git
cd localdata-mcp
uv sync --dev
What’s included
The base install covers all supported functionality: SQL databases (SQLite, PostgreSQL, MySQL, DuckDB), all spreadsheet formats, flat files (CSV, TSV, Parquet, Feather, Arrow, HDF5), structured data (JSON, YAML, TOML, XML, INI), directed graphs (DOT, GML, GraphML, Mermaid), and the full data science suite (statistical analysis, regression, pattern recognition, time series, geospatial, optimization).
Additional database drivers
Support for Redis, MongoDB, Elasticsearch, InfluxDB, Neo4j, and CouchDB requires the modern-databases extra. These are not installed by default because they require database-specific native drivers.
# uv tool
uv tool install "localdata-mcp[modern-databases]"
# uvx (note the --from syntax)
uvx --from "localdata-mcp[modern-databases]" localdata-mcp
MCP client configuration
Add LocalData MCP to your MCP client configuration file. The exact location depends on your client:
Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%\Claude\claude_desktop_config.json(Windows)Claude Code:
.mcp.jsonin your project root
{
"mcpServers": {
"localdata": {
"command": "localdata-mcp",
"env": {}
}
}
}
If installed with uvx:
{
"mcpServers": {
"localdata": {
"command": "uvx",
"args": ["localdata-mcp"],
"env": {}
}
}
}
First steps
Once configured, your LLM agent has access to all LocalData MCP tools. Here are some typical first interactions:
Connect to a local SQLite database
connect_database("mydb", "sqlite", "./data.sqlite")
describe_database("mydb")
execute_query("mydb", "SELECT * FROM users LIMIT 10")
Open a CSV file
connect_database("sales", "csv", "./sales_data.csv")
execute_query("sales", "SELECT product, SUM(amount) FROM data GROUP BY product")
Load and analyze a graph
connect_database("g", "graphml", "./knowledge_graph.graphml")
get_graph_stats("g")
find_path("g", "node_a", "node_b")
export_graph("g", "mermaid")
Security
LocalData MCP restricts file access to the current working directory and its subdirectories. Parent directory traversal (../) is blocked. SQL queries are parameterized to prevent injection. A maximum of 10 concurrent connections are allowed.
Next steps
Flat files and databases — CSV, Excel, Parquet, and SQL databases
Databases — SQLite, PostgreSQL, MySQL, DuckDB with remote auth
Structured data — JSON, YAML, TOML tree storage
Directed graphs — DOT, GML, GraphML, Mermaid