Yinghuochong MCP Server
Provides read-only business data queries (orders and users) from a MySQL database, including tools to list databases, search orders, get order details, and list users.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Yinghuochong MCP Serversearch orders with status pending"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-ai
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
Related MCP server: MySQL MCP Server
Local Setup
npm install
npm run buildDefault database settings:
Host: 127.0.0.1
Port: 3306
User: root
Password: empty
Default DB: yinghuochong_recovery_clean_20260608Copy .env.example only if you need to override defaults.
Run
npm run startCodex MCP command:
node /Users/pengdahan/WorkSpace/mcp-ai/dist/index.jsSource Layout
Runtime flow:
Codex -> src/index.ts -> registerYhcTools -> src/db.ts -> MySQLsrc/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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only MCP server for Muovi, Argentina's trust-first local services marketplace (6 tools).
- dataOAuthco.thinair
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to interact with MySQL databases by inspecting schemas and executing safe, read-only queries within transactions.6 npm10MIT
- FlicenseNot gradedqualityDmaintenanceEnables safe interaction with MySQL databases through SELECT queries, table structure inspection, and database schema exploration. Provides read-only access to query data and examine database metadata.1-
- AlicenseAqualityCmaintenanceEnables AI assistants to inspect and query a MySQL database through safe, structured tools, including schema discovery and read-only queries.9122 npmMIT
- FlicenseAqualityDmaintenanceEnables AI agents to explore MySQL database schemas and execute read-only queries through a safe, MCP interface.6-