Yinghuochong MCP Server
Read-only business data adapter for Yinghuochong MySQL database, exposing order and user queries as structured MCP tools for safe inspection by Codex.
README
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
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.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.