deusr3x/mcp-server-demo
If you are the rightful owner of mcp-server-demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This document provides a structured summary of a Model Context Protocol (MCP) server setup, which includes an MCP server and an n8n instance for handling sensor data.
MCP Server
Playing around with creating a simple mcp server and a test client file.
Uses fast-mcp
Use uv
to install packages:
uv sync
There's a docker file that creates the mcp-server and an n8n instance.
docker compile up -d
This will start both n8n and the mcp-server. The server can be accessed on port 8000, and n8n can be found on http://localhost:5678
This setup is specific for my use case. I have a sensor that measures CO2, temperature, and humidity. The current reading can be accessed via an API call.
Historical values are stored in a postgresql database. The MCP server has tools to call the API and also to run a query on the database.
The included n8n workflow is set up to chat to the mcp server. You can ask about the current readings, or some historical data if a date is provided.