local-stdio-mcp

local-stdio-mcp

A minimal and extensible local MCP server that provides core utilities like ping and echo alongside a file search tool integrated with the Everything CLI. It enables fast local file searching and service testing through a standardized stdio transport layer.

Category
Visit Server

README

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

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