Skip to main content
Glama

FIWARE MCP Server

by dncampo

FIWARE MCP Server

Dies ist die erste Implementierung eines FIWARE Model Context Protocol (MCP)-Servers, der eine Brücke zwischen dem Context Broker und anderen Diensten bildet. Der Server implementiert grundlegende Operationen für die Interaktion mit einem FIWARE Context Broker.

Ziele

  • Erstellen Sie eine grundlegende MCP-Serverimplementierung für FIWARE
  • Bereitstellung einfacher Tools für die Context Broker-Interaktion
  • Demonstrieren Sie grundlegende CRUD-Operationen mit dem Context Broker
  • Dient als Grundlage für komplexere MCP-Implementierungen

Merkmale

  • Context Broker-Versionsprüfung
  • Abfragefunktionen für den Context Broker
  • Entitätsveröffentlichung und -aktualisierung

Voraussetzungen

  • Python 3.7 oder höher
  • pip (Python-Paketinstallationsprogramm)
  • Zugriff auf eine FIWARE Context Broker-Instanz

Installation

  1. Klonen Sie dieses Repository:
git clone <repository-url> cd FIWARE_MCP_01
  1. Installieren Sie die erforderlichen Abhängigkeiten:
pip install -r requirements.txt

Claude Desktop-Integration

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

Verwendung

Starten Sie den MCP-Server:

python server.py # or mcp run server.py

Der Server wird standardmäßig auf 127.0.0.1:5001 gestartet.

Verfügbare Tools

  1. CB_version
    • Überprüft die Version des Context Brokers
    • Standardparameter: Adresse="localhost", Port=1026
    • Gibt zurück: JSON-String mit Versionsinformationen
  2. query_CB
    • Fragt den Context Broker ab
    • Parameter:
      • Adresse (Standard: "localhost")
      • Port (Standard: 1026)
      • Abfrage (Standard: "")
    • Gibt zurück: JSON-Zeichenfolge mit Abfrageergebnissen
  3. veröffentlichen_in_CB
    • Veröffentlicht oder aktualisiert Entitäten im Context Broker
    • Parameter:
      • Adresse (Standard: "localhost")
      • Port (Standard: 1026)
      • entity_data (erforderlich: Wörterbuch mit Entitätsinformationen)
    • Gibt zurück: JSON-Zeichenfolge mit Operationsstatus

Beispielverwendung

# 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)

Konfiguration

Der Server kann durch Ändern der folgenden Parameter in server.py konfiguriert werden:

  • Hostadresse
  • Portnummer
  • Timeout-Einstellungen

Fehlerbehandlung

Der Server beinhaltet eine umfassende Fehlerbehandlung für:

  • Probleme mit der Netzwerkkonnektivität
  • Ungültige Antworten vom Context Broker
  • Fehlerhafte Entitätsdaten
  • Server-Herunterfahren

Beitragen

Senden Sie uns gerne Probleme und Verbesserungsvorschläge!

Lizenz

Dieses Projekt ist unter der Apache-Lizenz 2.0 lizenziert.

-
security - not tested
A
license - permissive license
-
quality - not tested

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.

Eine Brücke zwischen dem Context Broker und anderen Diensten, die grundlegende Vorgänge zum Veröffentlichen, Aktualisieren und Abfragen von Entitäten in FIWARE-Umgebungen implementiert.

  1. Ziele
    1. Merkmale
      1. Voraussetzungen
        1. Installation
          1. Claude Desktop-Integration
            1. Verwendung
              1. Verfügbare Tools
              2. Beispielverwendung
            2. Konfiguration
              1. Fehlerbehandlung
                1. Beitragen
                  1. Lizenz

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      A 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 -
                      95
                      Python
                      MIT License
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.
                      Last updated -
                      1
                      TypeScript
                      MIT License
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Model Context Protocol server for MarkLogic that enables CRUD operations and document querying capabilities through a client interface.
                      Last updated -
                      Python
                      MIT License
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A 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

                    View all related MCP servers

                    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