Token导航 LogoToken导航TokenDH.com
angusforeman-MCP SQL Archivist logo
AI代理stdio官方级别未说明来源级核验

angusforeman-MCP SQL Archivist

MCP Server

一个轻量级的工具,用于通过MCP服务器封装对SQL数据、非结构化数据和简单业务规则的访问,支持通过LLM进行查询和分析。

工具数

0

提示词数

0

GitHub Stars

1

资源数

0
PythonAI代理工作流自动化

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

angusforeman

提供方

angusforeman

最后核验

2026/5/17 20:23

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

uv run python azureopenai_mcp_chat.py

详细介绍

SQL存档

研究高峰探索了使用MCP服务器封装对由A)SQL数据B)非结构化数据和C)简单业务规则表示的内容存档的访问的有效性

一种轻量级的方法,使用两个python文件——一个充当聊天服务,调用LLM并读取系统提示。另一个是MCP实现(.env中指定的MCP服务器文件名),它在运行时被调用和初始化。MCP服务器使用STDIO进行通信。工具使用在聊天UI中以颜色编码。可以调整以下任何一项,并通过重新启动两行python来查看影响。

-LLM参数,如temp和top_p -系统提示文本 -MCP实施

可观察性是通过。/日志或通过取消--quiet标志来查看UI中的工具执行情况(请参阅下面的Observability)

使用MCP运行LLM以互操作存档

如果重新创建环境或从头开始构建数据库,请按照以下步骤操作

uv run python azureopenai_mcp_chat.py

示例查询

>Is the DuPrez Audio Archive healthy?
>>this should return a count of ~150

>is a recording of "the birds" in the archive?
>>this should return a positive response

>are the series of the birds quorom?"
>>this should activate a business rules lookup to qualify what qurom means

>yes (there is no auto-turn, so you need to give the LLM a chance to apply the rules via SQL)
>> Should confirm is the recordings are quorum

>How many recordings of A history of the world in 100 objects are there?
>>This will likely return 0 as the 100 programmes are actually listed by episode titles, an real world challenge with indexing of real world content

>Try checking other likely fields in the archive for these episodes  
>>This should find the recordings by searching under album or artists fields

MCP服务器中的概念

  • 健康检查
  • SQL 查询
  • 架构查询
  • 术语表
  • 业务规则
  • 概述

可观测性

实时查看日志

tail -f logs/mcp_server_*.log

直接到控制台的日志工具

注意:可以通过.env文件抑制MCP服务器在控制台中的日志记录

MCP_SERVER_PARAMS=--quiet

运行时设置

uv add duckdb
uv addd mcp[cli]

Azure资源设置

Set up Azure OpenAI Chat GPT5 instance 
Update .env file based on the template and the Azure servive details
Use  the default LLM and MCPserver details from template

创建新的archiveDB并重新导入示例数据

如果从回购中提取新资金,将是必要的

cd archivedb
uv run python create_archivedb.py #create table structure & indexes
uv run python import_to_archive.pt archive_metadata-examplefile.jsonl ## using --drop will clear any existing content
uv run python ./run_archivedb_query.py "select count(*) from audio_files" # validate record count

目录标签

目录标签

PythonAI代理工作流自动化SQL管理本地部署档案查询LLM集成轻量级工具业务规则

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP