
oisee/odata_mcp_go
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
oisee/odata_mcp_goは、https://github.com/oisee/odata_mcp_go.からインポートされたMCPサーバー候補です。
概要
oisee/odata_mcp_goは、https://github.com/oisee/odata_mcp_go.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
ODataからモデルコンテキストプロトコル(MCP)へのブリッジのGo実装で、MCPツールを通じてODataサービスへの普遍的アクセスを提供します。
これはPython OData-MCPブリッジ実装のGo移植版であり、異なるオペレーティングシステムでより簡単に動作し、より良いパフォーマンスと簡単な展開を実現するために設計されています。OData v2およびv4の両方のサービスをサポートしています。
🆕 新しさ(v1.6.0)
ユニバーサルツールモード — すべてを支配する一つのツール
最大の追加要素は**Universal Tool Mode(--universal)で、大規模なODataサービスにとって画期的な機能です:
| 計量 | 標準モード | ユニバーサルモード | 還元 |
|---|---|---|---|
| ツール(ノースウィンド) | 157 | 1 | 99.4% |
| ツール(SAP BP) | 485 | 1 | 99.8% |
| トークン使用量 | ~37,000 | ~900 | 97.6% |
**なぜオプトインが必要なのですか?**ユニバーサルモードはODataとのやり取り方法を変えます:
- 標準モード:各エンティティには専用のツール(
filter_Products、get_Ordersなど)が割り当てられます。 - ユニバーサルモード:
odataツール1台で、action、target、params]
私たちがオプトインにした理由は:
- 後方互換性 — 既存の設定やワークフローが引き続き動作する
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
OData MCP Bridge (Go)
A Go implementation of the OData to Model Context Protocol (MCP) bridge, providing universal access to OData services through MCP tools.
This is a Go port of the Python OData-MCP bridge implementation, designed to be easier to run on different operating systems with better performance and simpler deployment. It supports both OData v2 and v4 services.
🆕 What’s New (v1.6.0)
Universal Tool Mode — One Tool to Rule Them All
The biggest addition is Universal Tool Mode (--universal), a game-changer for large OData services:
# Before: 485 tools, ~37,000 tokens, Claude says "no API available"
./odata-mcp https://large-sap-service.com/odata/
# After: 1 tool, ~900 tokens, works perfectly
./odata-mcp --universal https://large-sap-service.com/odata/
| Metric | Standard Mode | Universal Mode | Reduction |
|---|---|---|---|
| Tools (Northwind) | 157 | 1 | 99.4% |
| Tools (SAP BP) | 485 | 1 | 99.8% |
| Token usage | ~37,000 | ~900 | 97.6% |
Why is it opt-in? Universal mode changes how you interact with OData:
- Standard mode: Each entity gets dedicated tools (
filter_Products,get_Orders, etc.) - Universal mode: One
odatatool withaction,target, andparams
We made it opt-in because:
- Backward compatibility — existing configs and workflows continue working
- Discoverability — per-entity tools are self-documenting; LLMs can see exactly what’s available
- Simplicity for small services — if you have 20 tools, per-entity mode works great
- Explicit choice — users should consciously choose the trade-off
When to use --universal:
- Service has 50+ entity sets
- Running multiple OData services simultaneously
- Experiencing “no API available” or tool selection failures
- Want minimal token footprint
See Universal Tool Architecture for the full story.
MCP Header Forwarding
New --forward-mcp-headers flag enables passing HTTP headers from MCP clients to OData services:
./odata-mcp --transport streamable-http --forward-mcp-headers https://secured-service.com/odata/
This enables:
- Dynamic authentication — pass credentials per-request instead of at startup
- Multi-tenant scenarios — different users with different tokens
- Custom headers —
X-*headers flow through to OData
Issue Fixes Bonanza
This release fixes 10 open issues:
| Issue | Problem | Fix |
|---|---|---|
| #12 | SAP OData shows no tools | Fixed XML namespace parsing (sap:creatable etc.) |
| #13 | --max-items 99999 crashes |
Added validation (max 10,000) |
| #14 | Multiple services = Claude stuck | Universal tool mode |
| #16 | GUID formatting wrong | Auto-detect SAP, add guid'...' prefix |
| #17 | Timeout instead of error | Immediate error response |
| #18 | Wildcard search fails | Parse SearchRestrictions annotation |
インストール
docker run --rm -it odata-mcp --help設定
{
"mcpServers": {
"northwind-v2": {
"command": "C:/bin/odata-mcp.exe",
"args": [
"--service",
"https://services.odata.org/V2/Northwind/Northwind.svc/",
"--tool-shrink"
]
},
"northwind-v4": {
"command": "C:/bin/odata-mcp.exe",
"args": [
"--service",
"https://services.odata.org/V4/Northwind/Northwind.svc/",
"--tool-shrink"
]
}
}
}