# MySQL Query Agent

> Runs MySQL queries from an AI coding agent using the mysql2 Node.js library, with setup instructions for npm and TypeScript.

- Skill: `agentskillexchange/mysql-query-agent` (Agent Skill)
- Install (CLI): `npx skillmds add agentskillexchange/mysql-query-agent`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/mysql-query-agent/raw
- Safety review: CAUTION (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics, SQL & Databases
- Tags: Mysql, Mysql2, Nodejs, Npm, Sql, Typescript
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/agentskillexchange/mysql-query-agent

---


# MySQL Query Agent



## Installation

Use the upstream install or setup path that matches your environment:
- npm install --save mysql2
- npm install --save-dev @types/node

Requirements and caveats from upstream:
- [node-version-image]: https://img.shields.io/node/v/mysql2.svg
- [node-version-url]: https://nodejs.org/en/download
- [license-url]: https://github.com/sidorares/node-mysql2/blob/master/License

Basic usage or getting-started notes:
- MySQL2 is free from native bindings and can be installed on Linux, Mac OS or Windows without any issues.
- bash
- For TypeScript documentation and examples, see [here][docs-typescript-docs].

- Source: https://github.com/sidorares/node-mysql2
- Extracted from upstream docs: https://raw.githubusercontent.com/sidorares/node-mysql2/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/mysql-query-agent/)

