logo
0
0
Login

go-database-mcp

一个使用 Go 语言编写的查询数据库信息的mcp项目,目前支持 MySQL 和 SQLite 数据库。

为什么选择 Go 语言?

因为他能编译成单一的二进制文件,方便部署。

目前提供的工具

  • list_tables: 列出数据库中的所有表
  • describe_table: 显示指定表的结构信息

测试数据库

SQLite

go run scripts/init_testdb.go -db=sqlite

MySQL

go run scripts/init_testdb.go -db=mysql -dsn="user:pass@tcp(host:port)/dbname?parseTime=true"

使用说明

懒得写了

About

No description, topics, or website provided.
Language
Go99.6%
Shell0.2%
Others0.2%