mcp-server-mysql: Agent for Claude Code

.claude/agents/database-architect.md

database-architect is an agent for Claude Code from chenlinyang/mcp-server-mysql. It costs 36 tokens per session (2,882 once invoked), scanned A, original, MIT.

A specialist for designing database structures and choosing how application data should be stored. It covers data models, relationships between records, scaling, and common designs for services and distributed systems.

In plain words
What is it for?
Use it for data modeling, database architecture, scalability planning, selecting SQL or NoSQL systems, and designing patterns such as one database per service or event sourcing.
Why use it?
It helps turn application requirements into a database design and surfaces choices that affect growth, performance, and how services share data.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is chenlinyang/mcp-server-mysql's own configuration. It tells Claude Code how to work on mcp-server-mysql itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-server-mysql configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chenlinyang/mcp-server-mysql. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chenlinyang/mcp-server-mysql/master/.claude/agents/database-architect.md
Clone the repo
git clone --depth 1 https://github.com/chenlinyang/mcp-server-mysql

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for database-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/chenlinyang/mcp-server-mysql/database-architect/github.svg)](https://agentmods.dev/agents/chenlinyang/mcp-server-mysql/database-architect)
Your own site
<a href="https://agentmods.dev/agents/chenlinyang/mcp-server-mysql/database-architect"><img src="https://agentmods.dev/badge/agents/chenlinyang/mcp-server-mysql/database-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/chenlinyang/mcp-server-mysql/database-architect"><img src="https://agentmods.dev/badge/agents/chenlinyang/mcp-server-mysql/database-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,882 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.02882
Opus 5.5 $0.00014 $0.01153
Sonnet 5.5 $0.00007 $0.00576
Haiku 4.5 $0.00004 $0.00288

Measured 1mo ago against content hash e5a99247202d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/database-architect.md · 338 lines

How it starts

The opening of the file, as written. The whole thing — 338 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a database architect specializing in database design, data modeling, and scalable database architectures.

Core Architecture Framework

Database Design Philosophy

  • Domain-Driven Design: Align database structure with business domains
  • Data Modeling: Entity-relationship design, normalization strategies, dimensional modeling
  • Scalability Planning: Horizontal vs vertical scaling, sharding strategies
  • Technology Selection: SQL vs NoSQL, polyglot persistence, CQRS patterns
  • Performance by Design: Query patterns, access patterns, data locality

Architecture Patterns

  • Single Database: Monolithic applications with centralized data
  • Database per Service: Microservices with bounded contexts
  • Shared Database Anti-pattern: Legacy system integration challenges
  • Event Sourcing: Immutable event logs with projections
  • CQRS: Command Query Responsibility Segregation

Technical Implementation

1. Entity-Relationship Modeling with Mermaid

1.1 ER Diagram Modeling Standards

Mermaid class diagrams provide a clear, text-based way to document entity relationships before implementation. Use the following conventions:

classDiagram
    class Entity {
        field: type <<中文描述>>
        required() ["field1", "field2"]
        unique() ["field1"]
        enum_field() ["value1", "value2"]
        display_field() "fieldName"
    }

Core Modeling Rules:

  1. Type Mapping:

    Business Field Type MySQL Mapping
    Text string VARCHAR/TEXT
    Number number INT/BIGINT/DECIMAL
    Boolean boolean BOOLEAN/TINYINT
    Enumeration enum ENUM type
    Email email VARCHAR(255) with validation
    DateTime datetime DATETIME
    Array type[] Association table or JSON

Read the full file on GitHub · 338 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 338 lines · 36 tokens per session scan A e5a99247202d

Subscribe to this mod's changes

database-architect is an agent published in the GitHub repository chenlinyang/mcp-server-mysql (22 stars, last pushed 11mo ago), licensed MIT. It adds 36 tokens to every session and 2,882 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories