Getting Started

Installation

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.json in 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