FIWARE MCP Server
FIWARE MCP サーバー
これは、Context Brokerと他のサービス間のブリッジを提供するFIWARE Model Context Protocol (MCP) Serverの最初の実装です。このサーバーは、FIWARE Context Brokerと対話するための基本的な操作を実装しています。
目的
FIWARE 用の基本的な MCP サーバー実装を作成する
Context Brokerとのやりとりのためのシンプルなツールを提供する
Context Broker を使用した基本的な CRUD 操作のデモンストレーション
より複雑なMCP実装の基盤として機能する
Related MCP server: Synapse MCP Server
特徴
Context Brokerのバージョンチェック
Context Brokerのクエリ機能
エンティティの公開と更新
前提条件
Python 3.7以上
pip (Python パッケージインストーラー)
FIWARE Context Brokerインスタンスへのアクセス
インストール
このリポジトリをクローンします:
git clone <repository-url>
cd FIWARE_MCP_01必要な依存関係をインストールします。
pip install -r requirements.txtクロードデスクトップ統合
mcp install server.py
# Custom name
mcp install server.py --name "FIWARE MCP Server"
# Environment variables, if any
mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
mcp install server.py -f .env使用法
MCP サーバーを起動します。
python server.py
# or
mcp run server.pyデフォルトでは、サーバーは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文字列
使用例
# Example entity data
entity_data = {
"id": "urn:ngsi-ld:TemperatureSensor:001",
"type": "TemperatureSensor",
"temperature": {
"type": "Property",
"value": 25.5
},
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
}
# Publish to Context Broker
result = publish_to_CB(entity_data=entity_data)構成
server.pyの次のパラメータを変更することでサーバーを構成できます。
ホストアドレス
ポート番号
タイムアウト設定
エラー処理
サーバーには、次の包括的なエラー処理が含まれています。
ネットワーク接続の問題
コンテキストブローカーからの無効な応答
不正なエンティティデータ
サーバーのシャットダウン
貢献
問題や機能強化のリクエストをお気軽にお寄せください。
ライセンス
このプロジェクトは、Apache License 2.0 に基づいてライセンスされています。
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 Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server implementation that provides EMQX MQTT broker interaction.425Apache 2.0
- AlicenseCqualityFmaintenanceA Model Context Protocol server that exposes Synapse Entities (Datasets, Projects, Folders, Files, Tables) with their annotations, enabling programmatic access to Synapse data resources through a RESTful API.711MIT
- Flicense-qualityDmaintenanceEnables creation and management of knowledge graphs with entities, relationships, and observations through HTTP streaming. Supports persistent storage, search functionality, and CRUD operations for building and querying interconnected knowledge bases.2
- Alicense-qualityDmaintenanceEnables AI agents to interact with IoT device data from a smart city, including public lighting, water, and gas meters. Supports querying and management via the Model Context Protocol.1MIT
Related MCP Connectors
The official MCP Server from Mia-Platform to interact with Mia-Platform Console
Manage products, EU Digital Product Passports, operator parties, and GS1 EPCIS supply-chain events.
MEOK ABCI Bridge MCP — read-only Tendermint / Cosmos blockchain query for agents. Built-in registry
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/dncampo/FIWARE-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server