FIWARE MCP Server
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
Related MCP server: Synapse MCP Server
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
Klonen Sie dieses Repository:
git clone <repository-url>
cd FIWARE_MCP_01Installieren Sie die erforderlichen Abhängigkeiten:
pip install -r requirements.txtClaude 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 .envVerwendung
Starten Sie den MCP-Server:
python server.py
# or
mcp run server.pyDer Server wird standardmäßig auf 127.0.0.1:5001 gestartet.
Verfügbare Tools
CB_version
Überprüft die Version des Context Brokers
Standardparameter: Adresse="localhost", Port=1026
Gibt zurück: JSON-String mit Versionsinformationen
query_CB
Fragt den Context Broker ab
Parameter:
Adresse (Standard: "localhost")
Port (Standard: 1026)
Abfrage (Standard: "")
Gibt zurück: JSON-Zeichenfolge mit Abfrageergebnissen
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.
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