Yinghuochong Server
БесплатноНе проверенRead-only business data adapter for Yinghuochong MySQL database, exposing order and user queries as structured MCP tools for safe inspection by Codex.
Описание
Read-only business data adapter for Yinghuochong MySQL database, exposing order and user queries as structured MCP tools for safe inspection by Codex.
README
Learning project for building a first Model Context Protocol (MCP) server and testing it from Codex.
Chinese documentation: README.zh-CN.md
Yinghuochong MCP Server
This MCP server is a read-only business data adapter for the local Yinghuochong MySQL database. It exposes order and user queries as structured MCP tools so Codex can inspect business data safely.
Tools:
yhc_list_databasesyhc_search_ordersyhc_get_order_detailyhc_list_users
Local Setup
npm install
npm run build
Default database settings:
Host: 127.0.0.1
Port: 3306
User: root
Password: empty
Default DB: yinghuochong_recovery_clean_20260608
Copy .env.example only if you need to override defaults.
Run
npm run start
Codex MCP command:
node /Users/pengdahan/WorkSpace/mcp-ai/dist/index.js
Source Layout
Runtime flow:
Codex -> src/index.ts -> registerYhcTools -> src/db.ts -> MySQL
src/index.ts: MCP server entry point. Creates the server, registers tools, and connects through stdio.src/config.ts: Reads database configuration and enforces the allowed database whitelist.src/db.ts: Shared MySQL access layer with connection pooling, database validation, identifier quoting, andqueryRows<T>().src/format.ts: Shared response formatting helpers for money, JSON text, and pagination metadata.src/tools/yhc.ts: Registers all Yinghuochong read-only business query tools.
Safety Boundaries
- Database names must be in
YHC_ALLOWED_DATABASES. - SQL values use parameterized placeholders.
- SQL identifiers are validated before quoting.
- All tools are marked read-only in MCP annotations.
Установка Yinghuochong Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/bighamD/mcp-aiFAQ
Yinghuochong Server MCP бесплатный?
Да, Yinghuochong Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Yinghuochong Server?
Нет, Yinghuochong Server работает без API-ключей и переменных окружения.
Yinghuochong Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Yinghuochong Server в Claude Desktop, Claude Code или Cursor?
Открой Yinghuochong Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Yinghuochong Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
