数据库集成服务

一个演示用的MCP服务器,用于与sqlite3 northwind数据库集成,支持基于上下文的查询。

  • by maarthala
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 maarthala/mcp-northwind-db

使用说明

mcp北风数据库

一个与sqlite3-northwind数据库集成的演示MCP服务器。

运作原理

Python版本: Python 3.12.4

克隆此仓库

从 <repo-root> 跑

pip install .

打开 .vscode/mcp.json 然后单击 start 在mcp服务器配置上。

打开可视化代码“打开聊天”编辑器

在聊天编辑器中选择Agent

基于northwind数据库数据询问上下文。以下表格用于上下文

  • 发票
  • 订单
  • 订单总计
  • 客户
  • 产品

例题

find the invoice details using order 10249 and associated product information along with order total.
phone number of Bottom-Dollar
list available countries
count number of customers present in each country ?
what products are in order 10249