Local Stdio MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .[dev]
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add local-stdio-mcp -- node "<FULL_PATH_TO_MYMCP>/dist/index.js"

Replace <FULL_PATH_TO_MYMCP>/dist/index.js with the actual folder you prepared in step 1.

README.md

A minimal and extensible local stdio MCP server.

local-stdio-mcp

一个最小可运行、可扩展的本地 stdio MCP 服务。

第一阶段内置 3 个工具:

  • ping
  • echo
  • search_files

其中 search_files 通过 Everything 命令行工具进行文件名搜索,只作为示例模块,不与主服务耦合。

目录结构

local-stdio-mcp/
  README.md
  pyproject.toml
  mcp-settings.json.example
  server.py
  config.py
  modules/
    everything/
      README.md
      backend.py
      tools.py
  shared/
    errors.py
    schemas.py
    utils.py
  tests/
    test_smoke.py

环境准备

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .[dev]

如果你已经安装了 Everything CLI,可以把 es.exe 放到系统 PATH 中,或者在项目配置文件里指定路径。

配置

在项目根目录创建 mcp-settings.json,内容可参考 mcp-settings.json.example

{
  "tools": {
    "ping": true,
    "echo": true,
    "search_files": true
  },
  "everything": {
    "enabled": true,
    "path": "",
    "default_limit": 20
  }
}

说明:

  • tools.ping 控制是否暴露 ping
  • tools.echo 控制是否暴露 echo
  • everything.enabled 控制 Everything 模块总开关
  • tools.search_files 控制是否暴露 search_files
  • everything.path 用于指定 es.exe 路径,支持相对项目根目录的相对路径
  • everything.default_limit 控制默认返回条数
  • search_files 只有在 everything.enabled=truetools.search_files=true 时才会注册

启动服务

python server.py

该服务使用 stdio 作为 MCP 传输层,适合被支持 MCP 的本地客户端直接拉起。

工具说明

`ping`

用于检查服务是否存活:

{"ok": true, "message": "pong"}

`echo`

用于验证参数和返回结构:

输入:

{"text": "hello"}

输出:

{"ok": true, "text": "hello"}

`search_files`

输入:

{"query": "invoice", "limit": 20}

输出:

{
  "ok": true,
  "backend": "everything",
  "items": [
    {
      "name": "invoice_001.pdf",
      "path": "D:\\Work\\invoice_001.pdf"
    }
  ]
}

错误输出:

{
  "ok": false,
  "error_code": "EVERYTHING_UNAVAILABLE",
  "message": "Everything backend is unavailable"
}

测试

pytest

Tools (3)

pingChecks if the server is alive.
echoVerifies parameters and returns the input text.
search_filesSearches for files using the Everything CLI tool.

Environment Variables

PATHSystem path where es.exe (Everything CLI) is located.

Configuration

claude_desktop_config.json
{"tools": {"ping": true, "echo": true, "search_files": true}, "everything": {"enabled": true, "path": "", "default_limit": 20}}

Try it

Ping the server to check if it is currently running.
Echo the message 'Hello, Claude' to verify the connection.
Search for files containing 'invoice' in their name.
Find the top 10 files related to 'project-documentation' using the search tool.

Frequently Asked Questions

What are the key features of Local Stdio MCP?

Provides core utility tools including ping and echo. Integrates with Everything CLI for fast local file searching. Uses standardized stdio transport layer for local communication. Highly extensible modular architecture. Configurable tool exposure via JSON settings.

What can I use Local Stdio MCP for?

Testing MCP client connectivity and service responsiveness. Quickly locating local files on Windows using the Everything search engine. Verifying data transmission and parameter handling between Claude and local tools. Building custom local automation modules by extending the existing framework.

How do I install Local Stdio MCP?

Install Local Stdio MCP by running: python -m venv .venv && .\.venv\Scripts\Activate.ps1 && pip install -e .[dev]

What MCP clients work with Local Stdio MCP?

Local Stdio MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Local Stdio MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare