local-context
Enables querying SQLite databases through a SQL query tool, with read-only access by default and optional write support when configured; also supports SQLite sources defined in the server or project configuration.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Local Context
Local MCP server for Claude Desktop and Claude Code. It runs on your machine and can:
list, search, and read files
run one terminal command
query SQLite
run named tasks on a schedule, without calling Claude
Python 3.11+ is the only requirement. The server does not call the Claude API. Tool results are capped (4,000 characters by default, 16,000 max) so a read cannot dump a whole file into the chat.
Claude Desktop
Install Python 3.11+. On Windows,
py -3 --versionshould work.Open Settings → Developer → Edit Config. That opens the config file this install actually reads.
Add a server. Use the full path to
run.cmdon Windows so the Microsoft Storepythonstub is not used:
{
"mcpServers": {
"local-context": {
"command": "C:\\path\\to\\local-context\\run.cmd",
"env": {
"PYTHONUNBUFFERED": "1",
"PYTHONIOENCODING": "utf-8",
"LOCAL_CONTEXT_ROOT": "C:\\path\\to\\folder\\claude\\may\\use"
}
}
}
}On macOS or Linux, set command to python3 and args to ["/path/to/local-context/run.py"].
Quit Claude completely and open it again.
Settings → Developer → Local MCP servers should list
local-context.
LOCAL_CONTEXT_ROOT is the folder Claude may read and use as the shell working directory.
Related MCP server: MCP Server Toolkit
Claude Code
From this directory:
claude --plugin-dir .From GitHub, add this repository as a marketplace, then install local-context@local-context-market.
Tools
Tool | Returns |
| Names in a directory |
| Matching lines |
| A text slice ( |
| One command, output capped |
| SQLite rows, read-only unless you opt in |
| A data source from config |
| Status only; command output stays on disk |
| Named local tasks |
| Roots, caps, and |
Plug in data
Copy config.example.json to config.json (gitignored). Source types: file, directory, json, csv, sqlite, command.
A project can also ship .local-context.json with file, directory, json, csv, or sqlite sources inside that project. It cannot add shell access, tasks, or command sources.
query_sql runs one statement. Writes need "allow_sql_writes": true and a sqlite source with "read_only": false.
Run due tasks without Claude:
py -3 run.py --runner --onceevery_seconds: 0 means manual only. Point Task Scheduler or cron at --once.
Limits
The process runs as you. It is not a sandbox.
Reads and the shell working directory stay under an allowed root, or a source you configured.
Symlinks are followed only when the real file is still inside that area.
.claude,.claude.json, and the Claude Desktop credential folders are blocked.Commands do not inherit Anthropic environment variables. Commands that name those credential files, the Anthropic API, encoded PowerShell, disk format, or shutdown are refused.
A command can still open some other file by absolute path.
Regex search does not allow
*,+,?, or{.
Develop
py -3 -m pip install pytest
py -3 -m pytestThis server cannot be deployed
Maintenance
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides Claude Desktop with direct access to your local file system for development tasks, enabling file operations (read, write, edit), directory browsing, command execution, and codebase search within a configured projects directory.6MIT
- AlicenseAqualityCmaintenanceProvides filesystem, web search, SQLite, and system tools for AI assistants like Claude, enabling secure access to local resources and the web.6MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to perform file operations, retrieve system information, run calculations, and generate timestamps on the local system.-
- FlicenseNot gradedqualityBmaintenanceEnables Claude Desktop or other MCP clients to execute shell commands, read/write files, and list directories on the local machine. Includes basic safety guardrails to block obviously destructive operations.-