
Private
USQLMCP
2025-04-14
通用SQL MCP(模型上下文协议)。
3 years
Works with Finder
0
Github Watches
0
Github Forks
0
Github Stars
usqlmcp
A universal SQL MCP (Model Context Protocol).
Features
-
Tools
-
read_query
: Execute aSELECT
query and return the results. -
write_query
: Execute anINSERT
,UPDATE
,DELETE
, orALTER
query and return the number of affected rows. -
create_table
: Execute aCREATE TABLE
query to define new tables in the database. -
list_tables
: Retrieve a list of all table names in the database. -
describe_table
: Retrieve schema information for a specific table.
-
-
Resources
-
schema://all
: Get schema information for all tables -
schema://{table}
: Get schema information for a specific table
-
Installing
usqlmcp
is available via Release
Installing via Release
- Download a release for your platform
- Extract the
usqlmcp
orusqlcmp.exe
file from the.tar.bz2
or.zip
file - Move the extracted executable to somewhere on your
$PATH
(Linux/macOS) or%PATH%
(Windows)
Setup
MCP Integration in Cursor
Add the following configuration to your ~/.cursor/mcp.json file or configure via the settings menu in Cursor.
{
"mcpServers": {
"usqlmcp": {
"command": "usqlmcp",
"args": ["--dsn", "sqlite3:///your/db/dsn/file.db"]
}
}
}
Other tools
{
"servers": {
"usqlmcp": {
"type": "stdio",
"command": "usqlmcp",
"args": ["--dsn", "sqlite3:///your/db/dsn/file.db"]
}
}
}
Acknowledgments
This project depends on usql, a universal command-line interface for SQL databases.
相关推荐
😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack
Reviews
5
(0)