FIWARE MCP サーバー
これは、Context Brokerと他のサービス間のブリッジを提供するFIWARE Model Context Protocol (MCP) Serverの最初の実装です。このサーバーは、FIWARE Context Brokerと対話するための基本的な操作を実装しています。
目的
- FIWARE 用の基本的な MCP サーバー実装を作成する
- Context Brokerとのやりとりのためのシンプルなツールを提供する
- Context Broker を使用した基本的な CRUD 操作のデモンストレーション
- より複雑なMCP実装の基盤として機能する
特徴
- Context Brokerのバージョンチェック
- Context Brokerのクエリ機能
- エンティティの公開と更新
前提条件
- Python 3.7以上
- pip (Python パッケージインストーラー)
- FIWARE Context Brokerインスタンスへのアクセス
インストール
- このリポジトリをクローンします:
- 必要な依存関係をインストールします。
クロードデスクトップ統合
使用法
MCP サーバーを起動します。
デフォルトでは、サーバーは127.0.0.1:5001
で起動します。
利用可能なツール
- CB_バージョン
- Context Brokerのバージョンを確認します
- デフォルトのパラメータ: address="localhost", port=1026
- 戻り値: バージョン情報を含むJSON文字列
- クエリ_CB
- コンテキストブローカーにクエリを実行する
- パラメータ:
- アドレス(デフォルト: "localhost")
- ポート(デフォルト: 1026)
- クエリ(デフォルト: "")
- 戻り値: クエリ結果を含むJSON文字列
- CBに公開
- Context Broker 内のエンティティを公開または更新します
- パラメータ:
- アドレス(デフォルト: "localhost")
- ポート(デフォルト: 1026)
- entity_data (必須: エンティティ情報を含む辞書)
- 戻り値: 操作ステータスを含むJSON文字列
使用例
構成
server.py
の次のパラメータを変更することでサーバーを構成できます。
- ホストアドレス
- ポート番号
- タイムアウト設定
エラー処理
サーバーには、次の包括的なエラー処理が含まれています。
- ネットワーク接続の問題
- コンテキストブローカーからの無効な応答
- 不正なエンティティデータ
- サーバーのシャットダウン
貢献
問題や機能強化のリクエストをお気軽にお寄せください。
ライセンス
このプロジェクトは、Apache License 2.0 に基づいてライセンスされています。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Context Broker と他のサービス間のブリッジであり、FIWARE 環境でのエンティティの公開、更新、およびクエリの基本操作を実装します。
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that provides a standardized interface for interacting with Notion's API, enabling users to list databases, create pages, and search across their Notion workspace.Last updated -95PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.Last updated -1TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server for MarkLogic that enables CRUD operations and document querying capabilities through a client interface.Last updated -PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server for accessing Confluence API using Personal Access Tokens, enabling users to retrieve space lists, view pages, create new pages, and update existing content.Last updated -TypeScript