LocalTools MCP
A stdio MCP server for Claude Desktop that provides an interactive media player, a local command runner, and file read/write/edit tools.
README
LocalTools MCP
A stdio MCP server for Claude Desktop that gives Claude three local capabilities:
- Interactive media player that renders inside Claude Desktop (audio and video) with play, pause, seek and volume controls.
- Local command runner to run shell commands on your machine.
- Local file tools to read, write and edit files.
Built with FastMCP.
What makes the player different
The player is a real MCP App: when Claude calls play_media, Claude Desktop renders an HTML5 player in a sandboxed iframe right in the conversation, no external window or browser tab.
To keep media bytes out of the model context (a base64 video would blow up the context window), the server streams the file over a small local HTTP server bound to 127.0.0.1 with HTTP range support, so seeking works. The tool result only carries a tiny pointer (title, kind, mime, local URL) that the player loads.
If the host's content policy blocks the direct stream, the player falls back to fetching the file as a blob, and finally offers an "Open in browser" button.
Tools
| Tool | What it does |
|---|---|
play_media(source, title="") |
Play a local audio/video file (absolute path) or an http(s) media URL in the in-app player. |
run_command(command, cwd="", timeout=120) |
Run a shell command, returns exit code, stdout and stderr. |
read_file(path, offset=0, limit=0) |
Read a text file with 1-based line numbers. |
write_file(path, content, overwrite=True) |
Write a file, creating parent directories. |
edit_file(path, old_string, new_string, replace_all=False) |
Exact substring replace in a file. |
Requirements
- Python 3.10+
- Claude Desktop (for the in-app player; the other tools work in any MCP client)
Install
pip install -r requirements.txt
Register it with Claude Desktop using the FastMCP CLI (it edits the Claude Desktop config for you):
fastmcp install claude-desktop server.py --with nanoid
Then restart Claude Desktop.
Manual config
Alternatively add this to your Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"local-tools": {
"command": "python",
"args": ["C:\\path\\to\\server.py"]
}
}
}
Usage
Just ask Claude, for example:
- "Play
C:\Users\me\Music\song.mp3" - "Play this video D:\clips\demo.mp4"
- "Run
git statusin my project folder" - "Read the first 40 lines of server.py"
- "In config.json change the port from 8080 to 9090"
Notes
- The media server uses a fixed local port pool (
8770-8789); the first free port is chosen at startup. - On Windows,
run_commandruns throughcmd.exe; on macOS/Linux it uses your shell. - Everything runs locally. The command runner and file tools have full access to your machine, so only enable this server if you trust the client driving it.
License
MIT, see LICENSE.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.