iot-mcp-bridge
Allows controlling Raspberry Pi GPIO pins (LEDs and sensors) via natural language commands through the MCP bridge.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@iot-mcp-bridgeAcenda o LED verde do ESP8266"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🍃 IoT MCP Bridge - Controle IoT via Linguagem Natural
🚀 Visão Geral
Sistema IoT moderno que permite controlar dispositivos ESP8266 e Raspberry Pi usando linguagem natural através do Claude Desktop. Ideal para educação, demonstrações e projetos maker.
Related MCP server: Arduino MCP Server
✨ Características
🤖 Controle via Linguagem Natural - "Acenda o LED verde"
🍃 Suporte ESP8266/NodeMCU - LEDs e sensores físicos
🍓 Suporte Raspberry Pi - Simulação completa
🎯 Interface Claude Desktop - Integração nativa
📱 Múltiplos Dispositivos - Rede local
🎓 Educacional - Perfeito para aulas de IoT
🛠️ Tecnologias
Python 3.8+
FastMCP 2.0 - Protocolo MCP
aiohttp - Comunicação assíncrona
ESP8266/NodeMCU - Hardware IoT
Claude Desktop - Interface de usuário
📦 Instalação
1. Clonar o Repositório
git clone https://github.com/seu-usuario/iot-mcp-bridge.git
cd iot-mcp-bridge2. Criar Ambiente Virtual
python -m venv iot-mcp-env
source iot-mcp-env/bin/activate # Linux/Mac
# ou
iot-mcp-env\Scripts\activate # Windows3. Instalar Dependências
pip install -r requirements.txt4. Configurar ESP8266
Carregar
examples/esp8266_firmware.inono ESP8266Configurar WiFi no firmware
Anotar o IP do ESP8266
Atualizar IP em
src/esp8266_controller.py
⚙️ Configuração Claude Desktop
1. Copiar Configuração
Copie o conteúdo de claude_desktop_config.json para as configurações do Claude Desktop.
2. Localizar Arquivo de Configuração
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonMac:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
3. Adicionar Configuração
{
"mcpServers": {
"iot-mcp-bridge": {
"command": "python",
"args": ["mcp_fastmcp2_correct.py"],
"env": {
"PYTHONPATH": "."
}
}
}
}🎯 Como Usar
1. Iniciar Claude Desktop
Abra o Claude Desktop e verifique se o MCP Bridge está conectado.
2. Comandos de Exemplo
"Qual o status do ESP8266?"
"Acenda o LED verde do ESP8266"
"Desligue o LED azul do ESP8266"
"Leia o sensor de luz do ESP8266"
"Faça o LED vermelho piscar por 5 segundos"
"Mostre o status de todos os dispositivos"3. Comandos Disponíveis
ESP8266
esp8266_get_status- Status completoesp8266_control_led- Controlar LEDsesp8266_read_sensor- Ler sensoresesp8266_blink_led- Piscar LEDs
Raspberry Pi (Simulação)
raspberry_control_led- Controlar LEDsraspberry_read_sensor- Ler sensoresraspberry_read_button- Ler botão
Sistema
get_system_status- Status gerallist_devices- Listar dispositivosemergency_stop- Parada de emergência
🔧 Hardware
ESP8266/NodeMCU
LED Vermelho → GPIO 12 (D6)
LED Verde → GPIO 4 (D2)
LED Azul → GPIO 5 (D1)
Sensor LDR → A0 (pino analógico)Conexões
Conectar LEDs com resistores (220Ω)
Conectar sensor LDR com resistor (10kΩ)
Alimentar com 3.3V
📁 Estrutura do Projeto
iot-mcp-bridge/
├── mcp_fastmcp2_correct.py # 🚀 MCP Bridge principal
├── claude_desktop_config.json # ⚙️ Configuração Claude Desktop
├── src/
│ ├── esp8266_controller.py # 🍃 Controlador ESP8266
│ └── raspberry_controller.py # 🍓 Controlador Raspberry Pi
├── examples/
│ └── esp8266_firmware.ino # 🍃 Firmware ESP8266
├── config/
│ └── settings.py # ⚙️ Configurações
├── requirements.txt # 📦 Dependências
└── README.md # 📖 Este arquivo🎓 Aplicações Educacionais
Para Professores
Demonstrações IoT - Controle via linguagem natural
Aulas de Programação - Conceitos de IoT
Projetos Maker - Integração hardware/software
Para Alunos
Primeiros Passos IoT - Interface intuitiva
Experimentos Práticos - LEDs e sensores
Aprendizado de IA - Linguagem natural
🚨 Solução de Problemas
ESP8266 Não Responde
Verificar se o firmware foi carregado
Verificar conexão WiFi
Verificar IP no código
Testar com
ping [IP_ESP8266]
Claude Desktop Não Conecta
Verificar configuração MCP
Verificar se o arquivo existe
Verificar dependências instaladas
Reiniciar Claude Desktop
LEDs Não Acendem
Verificar conexões físicas
Verificar GPIOs no firmware
Verificar alimentação
Testar com Serial Monitor
🤝 Contribuição
Fork o projeto
Crie uma branch para sua feature (
git checkout -b feature/AmazingFeature)Commit suas mudanças (
git commit -m 'Add some AmazingFeature')Push para a branch (
git push origin feature/AmazingFeature)Abra um Pull Request
📄 Licença
Este projeto está sob a licença MIT. Veja o arquivo LICENSE para mais detalhes.
👨🏫 Autor
Fran - Aluno Maker Digital
Projeto educacional para ensino de IoT
Integração com Claude Desktop
Foco em linguagem natural e IA
🙏 Agradecimentos
Anthropic - Claude Desktop e MCP
FastMCP - Framework MCP
ESP8266 Community - Hardware e firmware
Comunidade Maker - Inspiração e suporte
⭐ Se este projeto te ajudou, considere dar uma estrela no GitHub!
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.
Latest Blog Posts
- 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/francenylson1/iot-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server