Serveur MCP tinymcp
✓ OfficielPermet aux LLM de contrôler des appareils embarqués en exposant les RPC Golioth et l'état LightDB en tant qu'outils MCP.
Aussi connu sous golioth/tinymcp
- Étoiles
- 158
- Outils
- —
- Téléchargements, 30 jours
- —
- Dernière version
- —
- Dernier commit
- 3 juil. 2025
- Licence
- Apache-2.0
Qu'est-ce que tinymcp MCP ?
tinymcp est un serveur MCP. Permet aux LLM de contrôler des appareils embarqués en exposant les RPC Golioth et l'état LightDB en tant qu'outils MCP.
Résumé généré à partir du README du projet
À propos du MCP server tinymcp
Le contrôle d'appareils embarqués via un LLM est ce que permet tinymcp en transformant les RPC Golioth et l'état LightDB en outils MCP accessibles. Les développeurs exécutant tinymcp localement peuvent se connecter à du matériel distant via l'API de gestion Golioth. En fournissant les variables d'environnement TINYMCP_PROJECT, TINYMCP_DEVICE et TINYMCP_API_KEY, les utilisateurs lient leur environnement local à des projets et des appareils Golioth spécifiques.
Cette configuration se distingue car elle permet d'exposer les fonctions existantes d'un appareil sans nécessiter de modifications de firmware. Cela est possible en incluant un schéma sur le chemin mcp/tools/schema au sein de LightDB State. Bien que le projet inclue un exemple de clignotement utilisant Zephyr RTOS pour ceux qui partent de zéro, le serveur est conçu pour fonctionner avec des appareils déjà connectés à la plateforme Golioth. Des clients compatibles comme Claude Code, Gemini CLI et le MCP Inspector peuvent ensuite interagir avec ces capacités physiques via des appels d'outils standard.
Ce que vous pouvez faire avec
- 1Contrôler le matériel sans mise à jour du firmwareUn développeur peut ordonner à une IA de déclencher une fonction d'un appareil en mettant à jour le schéma LightDB State.
- 2Tester visuellement les interactions avec l'appareilUtilisez le MCP Inspector pour vérifier que des RPC spécifiques sont correctement exposés en tant qu'outils avant d'utiliser un LLM.
Extrait du README du projet. Chaque cas d'utilisation est vérifié par rapport à une citation du document.
Configuration
TINYMCP_API_KEYTINYMCP_DEVICETINYMCP_PROJECT
| Nom | Description | Type |
|---|---|---|
| TINYMCP_API_KEY | — | |
| TINYMCP_DEVICE | — | |
| TINYMCP_PROJECT | — |
Vérifications automatisées
Exécuté le 15 nov. 2026Rapport complet →Pas encore vérifié. Un serveur nécessite un score de 80, aucune faille sérieuse et suffisamment de données pour que nous puissions effectuer les vérifications. Fonctionnement des vérifications · Ce qu'il faut corriger pour gagner des points
- Dépôt source lié et accessiblegolioth/tinymcp is public and reachablegithub.com/golioth/tinymcp ↗Réussi
- Le nom du package correspond au dépôt sourceNon vérifié
- Provenance du build (attestation Sigstore)Non vérifié
- Licence open source (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Réussi
- Commit ou version publiée au cours de l'année écouléeLast commit or release 2025-07-03github.com/golioth/tinymcp ↗Faille
- OpenSSF ScorecardNon vérifié
- Nom du package non proche d'un package populaireNon vérifié
- Aucun avis critique dans le package ou ses dépendancesNon vérifié
- Aucune instruction cachée destinée au modèle0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersRéussi
- Les outils destructifs sont étiquetésNon vérifié
- Le point de terminaison distant répond à la poignée de main MCPNon vérifié
README
Voir sur GitHubtinymcp
Let LLMs control embedded devices via the Model Context Protocol.
[!WARNING]
tinymcpis an experimental project. Expect frequent breaking changes. Extreme caution should be taken when delegating physical capabilities to AI systems.
Background
The tinymcp project includes an MCP server, which is executed locally, but
communicates with remote devices via the Golioth management
API. It uses two existing
device services on the Golioth platform, LightDB
State and Remote
Procedure Calls (RPCs), to
expose device functionality via MCP.
RPCs can be exposed as
tools
by including a schema in on the mcp/tools/schema path in LightDB State.
Because LightDB State can be updated by devices or users, RPCs on existing
devices can be exposed without needing to modify the device firmware.
Setup
To use tinymcp, you need to connect a device to the Golioth platform, then run
the tinymcp server on your local machine.
Firmware
While existing devices can be used without changing the firmware, if you don't
already have a device on Golioth, the blinky example
provides a simple demonstration of how to expose LED control to an LLM via
tinymcp. It uses Zephyr RTOS, which requires
setting up
dependencies
before building. After doing so, you can initialize your workspace with one of
the following commands.
west init -l .
Or, to use the downstream Nordic nRF Connect SDK.
west init -l . --mf west-ncs.yml
With your workspace initialized, use west update to fetch necessary modules
and libraries.
west update --narrow -o=--depth=1
You are now ready to build the firmware and flash your device. See the blinky documentation for more information.
Server
In order to run the tinymcp MCP server locally, the following environment
variables need to be supplied.
TINYMCP_PROJECT=<your-golioth-project-id>
TINYMCP_DEVICE=<your-golioth-device-id>
TINYMCP_API_KEY=<api-key-for-your-golioth-project>
The server can be built into an executable using go build -o tinymcp ./server
or run directly with go run ./server.
If you don't already have a device on Golioth, the blinky
example demonstrates how to expose LED control to an LLM via
tinymcp. See the documentation to build and
flash on your device, then expose the registered RPCs in your MCP schema.
There are many MCP client
implementations, most of which should
be compatible with tinymcp. Setup for a few popular options are listed below.
MCP Inspector
MCP Inspector is a visual testing tool for MCP servers. It allows you to interact with MCP methods directly, rather than going through an LLM. This can be useful when troubleshooting why an LLM may be failing to interact with your device.
The
documentation
provides information on how to quickly start the inspector. Once it is running,
you can point it to your local tinymcp MCP server by entering
http://localhost:8080 as the address and clicking Connect. You should be
presented with an option to List Tools, which should result in all of the RPCs
in your schema being exposed.
Claude Code
Claude Code is an agentic coding tool that you interact with in the terminal.
With the tinymcp MCP server running locally, it can be added to Claude
Code with a single command.
claude mcp add --transport http tinymcp http://localhost:8080 -H 'Authorization: Bearer none'
[!NOTE] The
Authorizationheader is supplied in this case to indicate to Claude Code that it should not attempt to authenticate via the OAuth flow.
Gemini CLI
The Gemini CLI is an open-source AI agent that allows you to access Gemini from the terminal.
The .gemini/settings.json file in this repository
will automatically configure the CLI to connect to a locally running tinymcp
MCP server if the CLI is started in this repository.
Questions sur tinymcp MCP
Dois-je modifier le firmware de mon appareil pour utiliser tinymcp ?
Non, les appareils déjà présents sur la plateforme Golioth peuvent être utilisés sans modification de firmware en exposant les RPC via le schéma LightDB State.
Quelles variables d'environnement sont nécessaires pour exécuter le serveur ?
Vous devez fournir votre ID de projet Golioth, votre ID d'appareil et la clé API de votre projet Golioth.
Puis-je utiliser cela avec Claude Code ?
Oui, vous pouvez ajouter le serveur tinymcp en cours d'exécution à Claude Code via une commande unique en utilisant le transport HTTP.