LocalTools MCP

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.

Category
Visit Server

README

LocalTools MCP

A stdio MCP server for Claude Desktop that gives Claude three local capabilities:

  1. Interactive media player that renders inside Claude Desktop (audio and video) with play, pause, seek and volume controls.
  2. Local command runner to run shell commands on your machine.
  3. 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 status in 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_command runs through cmd.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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured