Skip to main content
Glama
bighamD

Yinghuochong MCP Server

by bighamD

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_databases

  • yhc_search_orders

  • yhc_get_order_detail

  • yhc_list_users

Related MCP server: MySQL MCP Server

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, and queryRows<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.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Enables 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.
    Last updated
    1
  • F
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to interact with MySQL databases through natural language for schema introspection, safe SQL execution, and full CRUD operations. It provides built-in tools for managing users, products, and orders while ensuring security through parameterized queries and read-only SQL checks.
    Last updated
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI assistants to inspect and query a MySQL database through safe, structured tools, including schema discovery and read-only queries.
    Last updated
    9
    183
    MIT

View all related MCP servers

Related MCP Connectors

  • Read-only MCP server for Muovi, Argentina's trust-first local services marketplace (6 tools).

  • A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud

  • Read-only MCP server for ClassQuill, a tutoring-business-management platform.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bighamD/mcp-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server