# io.github.marcelo-ochoa/mysql (npm · @marcelo-ochoa/server-mysql)

An MCP server for MySQL databases.

- Trust score: 61/100 (medium)
- Change this week: +11
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `@marcelo-ochoa/server-mysql`: 61/100 (this document), [markdown](https://verifymcp.io/servers/marcelo-ochoa-mysql/marcelo-ochoa-server-mysql.md), [page](https://verifymcp.io/servers/marcelo-ochoa-mysql/marcelo-ochoa-server-mysql)

## Channel facts

- Registry: `npm`
- Package: `@marcelo-ochoa/server-mysql`
- Version: `1.0.7`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (104 of 108), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (104 of 108), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 144 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 54/100
  - 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).
  - AI-judged instruction clarity (poor).
  - Context-footprint check failed: tool/resource definitions use about 1257 tokens (~251/item across 5 items; 5 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### Claude

```bash
claude mcp add marcelo-ochoa-mysql -- npx -y @marcelo-ochoa/server-mysql
```

### Codex

```bash
codex mcp add marcelo-ochoa-mysql -- npx -y @marcelo-ochoa/server-mysql
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "marcelo-ochoa-mysql": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@marcelo-ochoa/server-mysql"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add marcelo-ochoa-mysql --command npx --arg -y --arg @marcelo-ochoa/server-mysql
```

### Hermes

```yaml
mcp_servers:
  marcelo-ochoa-mysql:
    command: "npx"
    args: ["-y", "@marcelo-ochoa/server-mysql"]
```

### Other

```json
{
  "mcpServers": {
    "marcelo-ochoa-mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mysql"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-02 (score 61, +32)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Malware scan: unverified → pass
- [security] Stability: Stability not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet.
- [functional regression] Capabilities: pass → unverified
- [functional improvement] Schema quality: unverified → poor
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] License: unverified → pass
- [functional] Licence: MIT

### 2026-07-31 (score 29, −21)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 50, +26)

- [functional improvement] Tool coverage: unverified → 100
- [functional improvement] Schema quality: unverified → 100

### 2026-07-28 (score 24, −26)

- [functional regression] Tool coverage: 100 → unverified
- [functional regression] Schema quality: 100 → unverified

### 2026-07-27 (score 50)

First indexed and scored.

## MCP tools (5)

### `mysql-query` (~346 tokens)

This tool executes SQL queries in a READ ONLY session connected to a MySQL database. If no active connection exists, it uses MCP server registration argument and environment variables MYSQL_USER and MYSQL_PASSWORD.

You should:

Execute the provided SQL query.

Return the results in Toon format.

Args:

sql: The SQL query to execute.


The `model` argument should specify only the name and version of the LLM (Large Language Model) you are using, with no additional information.
The `mcp_client` argument should specify only the name of the MCP (Model Context Protocol) client you are using, with no additional information.

Returns:

Json-formatted query results.
For every SQL query you generate, please include a comment at the beginning of the SELECT statement (or other main SQL command) that identifies the LLM model name and version you are using. Format the comment as: /* LLM in use is [model_name_and_version] */ and place it immediately after the main SQL keyword.
For example:

SELECT /* LLM in use is claude-sonnet-4 */ column1, column2 FROM table_name;

Please apply this format consistently to all SQL queries you generate, using your actual model name and version in the comment

Input parameters:

- `mcp_client` (string, required): Specify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)
- `model` (string, required): The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...)
- `sql` (string, required): The SQL query to execute

### `mysql-stats` (~238 tokens)

Get comprehensive statistics for a specific MySQL table. This tool retrieves detailed information including row counts, table size, index information, column statistics, and other metadata that can help optimize queries and understand data distribution.

Args:

name: The name of the table to get statistics for.


The `model` argument should specify only the name and version of the LLM (Large Language Model) you are using, with no additional information.
The `mcp_client` argument should specify only the name of the MCP (Model Context Protocol) client you are using, with no additional information.

Returns:

Json-formatted table statistics including row counts, size information, indexes, and column details.

Input parameters:

- `mcp_client` (string): Specify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)
- `model` (string): The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...)
- `name` (string, required): The name of the table to get statistics for

### `mysql-explain` (~242 tokens)

Generate and display the execution plan for a given SQL query using MySQL's EXPLAIN command. This tool helps you understand how MySQL will execute your query, including information about table scans, joins, indexes used, and estimated costs.

Args:

sql: The SQL query to explain.


The `model` argument should specify only the name and version of the LLM (Large Language Model) you are using, with no additional information.
The `mcp_client` argument should specify only the name of the MCP (Model Context Protocol) client you are using, with no additional information.

Returns:

Detailed execution plan showing how MySQL will process the query, including costs, row estimates, and access methods.

Input parameters:

- `mcp_client` (string, required): Specify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)
- `model` (string, required): The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...)
- `sql` (string, required): The SQL query to explain

### `mysql-connect` (~305 tokens)

Provides an interface to connect to a specified MySQL database. If a database connection is already active, the tool will close the existing connection before establishing a new one.

This tool accepts three required parameters:

connectionString: The MySQL connection string without embedded credentials (e.g., mysql://host:port/dbname or host:port/dbname)
user: The MySQL username
password: The MySQL password

The credentials are stored in environment variables MYSQL_USER and MYSQL_PASSWORD for the session.

The `model` argument should only be used to specify the name and version of the LLM (Large Language Model) you are using, with no additional information.
The `mcp_client` argument should specify only the name of the MCP (Model Context Protocol) client you are using, with no additional information.

Input parameters:

- `connectionString` (string, required): The MySQL connection string (e.g. mysql://host:port/dbname or host:port/dbname)
- `mcp_client` (string): Specify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)
- `model` (string): The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...)
- `password` (string, required): The MySQL password
- `user` (string, required): The MySQL user (e.g. root)

### `mysql-awr` (~126 tokens)

Generate a MySQL performance report similar to Oracle AWR. Includes database statistics, InnoDB metrics, top queries (requires performance_schema), table/index statistics, connection info, and optimization recommendations.

Input parameters:

- `mcp_client` (string): Specify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)
- `model` (string): The name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...)

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/marcelo-ochoa-mysql/marcelo-ochoa-server-mysql#diagnostics

## Score history

- 2026-08-03: 61
- 2026-08-02: 61
- 2026-08-01: 29
- 2026-07-31: 29
- 2026-07-30: 50
- 2026-07-28: 24
- 2026-07-27: 50

## Links

- npm package: https://www.npmjs.com/package/@marcelo-ochoa/server-mysql
- Socket report: https://socket.dev/npm/package/@marcelo-ochoa/server-mysql
- Repository: https://github.com/marcelo-ochoa/servers
- Changelog RSS feed: https://verifymcp.io/servers/marcelo-ochoa-mysql/marcelo-ochoa-server-mysql/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/marcelo-ochoa-mysql/marcelo-ochoa-server-mysql/changelog.json
- HTML version of this page: https://verifymcp.io/servers/marcelo-ochoa-mysql/marcelo-ochoa-server-mysql
