Skip to main content
Glama
dncampo

FIWARE MCP Server

by dncampo

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インスタンスへのアクセス

インストール

  1. このリポジトリをクローンします:

git clone <repository-url>
cd FIWARE_MCP_01
  1. 必要な依存関係をインストールします。

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で起動します。

利用可能なツール

  1. CB_バージョン

    • Context Brokerのバージョンを確認します

    • デフォルトのパラメータ: address="localhost", port=1026

    • 戻り値: バージョン情報を含むJSON文字列

  2. クエリ_CB

    • コンテキストブローカーにクエリを実行する

    • パラメータ:

      • アドレス(デフォルト: "localhost")

      • ポート(デフォルト: 1026)

      • クエリ(デフォルト: "")

    • 戻り値: クエリ結果を含むJSON文字列

  3. 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 に基づいてライセンスされています。

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    C
    quality
    F
    maintenance
    A 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.
    7
    11
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Enables 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

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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