Overview
What is Servidor MCP para Smart Cities?
Servidor MCP para Smart Cities is an MCP server that enables AI assistants to interact with IoT device data from a smart city, including public lighting, water meters, and gas meters. It currently supports only Stdio transport and has been tested with Cursor and GitHub Copilot in VSCode.
How to use Servidor MCP para Smart Cities?
Install dependencies with npm install, configure MongoDB (e.g., via Docker with docker-compose up --build -d), compile with npm run build, and start the server with npm start. For VSCode with GitHub Copilot, open the project and the server is automatically configured via .vscode/mcp.json. Alternatively, use Cursor by setting the MONGO_URI environment variable.
Key features of Servidor MCP para Smart Cities
- Provides 13 MCP tools for querying IoT device data.
- Supports filtering lighting devices by region, status, and GeoJSON.
- Logs are saved to files in the
logs/directory to avoid Stdio interference. - Includes structured documentation:
QUICKSTART.md,DEVELOPMENT.md,AI_CONTEXT.md, etc. - Uses MongoDB as the data store (Docker setup provided).
- Validated with Cursor and GitHub Copilot in VSCode.
Use cases of Servidor MCP para Smart Cities
- An AI assistant lists public lighting devices filtered by a specific region.
- Query energy efficiency by