qtz iris mcp
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"qtz-iris": {
"args": [
"-y",
"qtz-iris-mcp"
],
"command": "npx",
"description": "InterSystems IRIS Database MCP Server",
"env": {
"IRIS_API_VERSION": "2",
"IRIS_HOST": "",
"IRIS_NAMESPACE": "",
"IRIS_PASSWORD": "",
"IRIS_PORT": "",
"IRIS_SCHEME": "https",
"IRIS_USERNAME": ""
}
}
}
}
该服务需要配置环境变量:IRIS_API_VERSION、IRIS_HOST、IRIS_NAMESPACE、IRIS_PASSWORD、IRIS_PORT、IRIS_SCHEME、IRIS_USERNAME
服务介绍
qt iris mcp
这是一个 Model Context Protocol (MCP) 服务器,用于与 InterSystems IRIS 数据库进行交互。它允许 AI 模型通过标准协议查询和操作 IRIS 数据库。
功能特性
1. SQL 查询工具
- execute_sql: 执行自定义 SQL 查询
- select_data: 从表中查询数据(支持 WHERE、ORDER BY、LIMIT)
- get_table_structure: 获取表/类的结构信息
- count_records: 统计记录数
2. 元数据查询工具
- search_classes: 搜索类
- get_class_details: 获取类详情
- get_class_properties: 获取类的属性
- get_class_methods: 获取类的方法
- list_packages: 列出所有包
3. 文档操作工具
- get_document: 获取文档内容(.cls, .mac, .inc 等)
- list_documents: 列出命名空间中的文档
安装
# 克隆或复制项目后,安装依赖
npm install
# 构建项目
npm run build
配置
通过环境变量配置连接信息:
# 必需配置
export IRIS_HOST=localhost # IRIS 服务器地址
export IRIS_PORT=PORT # IRIS 服务器端口
export IRIS_NAMESPACE=USER # 命名空间
export IRIS_USERNAME=_SYSTEM # 用户名
export IRIS_PASSWORD=SYS # 密码
使用方法
方式一:作为独立 MCP 服务器运行
# 开发模式
npm run dev
# 生产模式
npm run build
npm start
方式二:在 Claude Desktop 中使用
在你的 Claude Desktop 配置文件中添加:
{
"mcpServers": {
"iris": {
"command": "node",
"args": ["/path/to/iris-mcp-server/dist/bundle.cjs"],
"env": {
"IRIS_HOST": "",
"IRIS_PORT": "",
"IRIS_NAMESPACE": "",
"IRIS_USERNAME": "",
"IRIS_PASSWORD": ""
}
}
}
}
- qtz