# MySQL Connector/Python — card for AI agents

Official Python driver for connecting to and querying MySQL databases.

Category: Databases, ORMs and clients · PyPI package `mysql-connector-python` · latest version 26.10.0 (checked 2026-11-01)
Install: `pip install mysql-connector-python`
License: GNU GPLv2 (with FOSS License Exception) (copyleft)

In your own product (generator, app, hosted service): **conditions**. Strong copyleft: a product you distribute with it must be released under the same license, with its source.

## Warnings
- The license is copyleft (GNU GPLv2 (with FOSS License Exception)): read it before shipping closed-source software or a hosted service.

## Numbers (AgentGid data)
- Gid Score: 48.7 (#2123 of all tools, 64 of 120 in its category)
- Used in 7 public projects set up for AI coding agents (0.1%)
- Downloads last week: 5,865,471 (as of 2026-11-24), -6.7% over 4 weeks
- GitHub stars: 949 (as of 2026-11-24)
- Last push: 2026-11-14

## Often used with
python-dotenv 75.0%, pandas 73.6%, Requests 72.2%, OpenAI Python Library 62.5%, Pydantic 55.6%, PyYAML 55.6%

## Checked alternatives (same job)
- SQLAlchemy: https://agentgid.com/tools/sqlalchemy/agent.md
- psycopg2: https://agentgid.com/tools/psycopg2-binary/agent.md
- PyMySQL: https://agentgid.com/tools/pymysql/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/mysql-connector-python/
- Homepage: https://dev.mysql.com/doc/connector-python/en/
- Repository: https://github.com/mysql/mysql-connector-python

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
