RIB iTWO 4.0 MCP Server
RIB iTWO 4.0 MCP Server
用于访问 RIB iTWO 4.0 实例的 SQL Server 数据库的只读 MCP 服务器。
工具
list_schemas– 列出所有模式list_tables– 列出某个模式下的表/视图search_tables– 按名称在所有模式中搜索表describe_table– 列出列、类型、可空性run_query– 执行任意 SELECT 语句(强制只读)
Related MCP server: mcp-sqlserver-readonly
设置
安装 ODBC 驱动:在 Windows 上安装 Microsoft ODBC Driver 18 for SQL Server。
创建数据库用户:在 SQL Server 上为 iTWO 数据库创建一个具有
db_datareader角色(只读)的登录名。服务端权限才是真正的安全保障——服务器中的查询过滤只是额外的一层保护。安装依赖:
cd "C:\Users\schol\Desktop\MCP Datenbank" python -m venv .venv .venv\Scripts\Activate.ps1 pip install -e .配置:将
.env.example复制为.env并填写访问凭据。Copy-Item .env.example .env本地测试:
python -m rib_itwo_mcp.server
在 Coolify 上部署
服务器作为 HTTP 服务运行(传输方式为 streamable-http),以便 Claude 可以远程连接。ODBC 驱动已包含在 Dockerfile 中,Coolify 主机本身无需安装数据库客户端。
将仓库推送到 Git(GitHub/GitLab 等)。
在 Coolify 中基于该仓库创建新的 Application,构建包:Dockerfile。
在 Coolify 中设置环境变量(来自
.env.example):DB_SERVER、DB_AME、DB_USER、DB_PASSWORDDB_RIVER=ODBC Driver 18 for SQL ServerDB_RUST_SERVER_CERTIFICATE=yes(如果有有效证书则为no)DB_LLOWED_SCHEMAS、DB_AAX_ROWS可选MCP_AUTH_TOKEN— 必填,一个长的随机密钥(openssl rand -hex 32),否则端点将暴露在网络上,任何人都可访问
开放端口
8000,或将 Coolify 代理/域名映射到该端口。健康检查路径为/health。进行部署。SQL Server 必须能从 Coolify 主机通过网络访问(如有需要,调整防火墙/安全组,端口 1433)。
在 Claude 中添加为连接器(远程/HTTP)
一旦应用可通过例如 https://rib-itwo-mcp.deine-domain.de 访问:
claude mcp add --transport http rib-itwo https://rib-itwo-mcp.deine-domain.de/mcp --header "Authorization: Bearer <dein-MCP_AUTH_TOKEN>"(在 Claude Desktop/Web 界面中相应地将 URL + Bearer 令牌填写为“Custom Connector”。)
本地作为 stdio 连接器(不使用 Coolify 的替代方案)
对于不使用 HTTP 的纯本地使用,可以设置 MCP_TRANSPORT=stdio:
claude mcp add rib-itwo -e MCP_TRANSPORT=stdio -- "C:\Users\schol\Desktop\MCP Datenbank\.venv\Scripts\python.exe" -m rib_itwo_mcp.server安全
run_query只允许单条SELECT/WITH语句,阻止多条语句以及写入/管理性关键字。此外,数据库用户本身应只拥有读取权限(
db_datareader),这样安全性就不完全依赖于查询过滤。可选地,可以通过
DB_ALLOWED_SCHEMAS将访问限制在特定模式。DB_MAX_ROWS限制每次查询的结果集大小。在 HTTP 部署(Coolify)中,
MCP_AUTH_TOKEN是端点前的唯一访问控制——如果没有设置令牌,服务器将对任何具有网络访问权限的人开放。此外,请确保通过 Coolify 代理/域名启用 TLS,以免令牌以明文传输。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Read-only PostgreSQL, MySQL, SQL Server access via MCP — 24 dialect-aware hosted tools.
Paid remote MCP for governed database query review, SQL simulation, approvals, and audits.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
2,000+ MCP servers read at source level. Know what one does before you connect. Free, no key.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables SQL query execution and database structure browsing via MCP tools and resources.MIT
- AlicenseNot gradedqualityCmaintenanceRead-only SQL Server MCP server enabling safe database queries, table listing, and schema inspection with built-in security protections.MIT
- AlicenseNot gradedqualityBmaintenanceEnables querying multiple SQL Server, Azure SQL, or Synapse databases through a single MCP interface, with support for read-only targets and various authentication methods.MIT
- FlicenseNot gradedqualityDmaintenanceEnables read-only SQL querying and schema inspection across MSSQL, PostgreSQL, and MySQL databases via MCP tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/5dSimon/rib-itwo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server