tinymcp MCPサーバー
✓ 公式Golioth RPCとLightDB StateをMCP toolとして公開することで、LLMによる組み込みデバイスの制御を可能にします。
別名 golioth/tinymcp
- スター
- 158
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- —
- 最終コミット
- 2025年7月3日
- ライセンス
- Apache-2.0
tinymcp MCPとは
tinymcpはMCPサーバーです。 Golioth RPCとLightDB StateをMCP toolとして公開することで、LLMによる組み込みデバイスの制御を可能にします。.
プロジェクトのREADMEから生成された概要
tinymcp MCP server について
tinymcpは、Golioth RPCとLightDB Stateをアクセス可能なMCP toolに変換することで、LLMを通じた組み込みデバイスの制御を実現します。ローカルでtinymcpを実行している開発者は、Golioth management APIを介してリモートハードウェアに接続できます。TINYMCP_PROJECT、TINYMCP_DEVICE、およびTINYMCP_API_KEYの環境変数を提供することで、ユーザーはローカル環境を特定のGoliothプロジェクトやデバイスにリンクさせることができます。
このセットアップの大きな特徴は、ファームウェアの修正を必要とせずに既存のデバイス機能を公開できる点です。これは、LightDB State内のmcp/tools/schemaパスにスキーマを含めることで実現されます。プロジェクトには、ゼロから始める方向けにZephyr RTOSを使用したblinkyの例も含まれていますが、サーバーはすでにGoliothプラットフォームに接続されているデバイスで動作するように設計されています。Claude Code、Gemini CLI、MCP Inspectorなどの互換性のあるクライアントは、標準的なtool callを通じてこれらの物理的な機能とやり取りできます。
できること
- 1ファームウェアのアップデートなしでハードウェアを制御開発者はLightDB Stateスキーマを更新することで、AIにデバイス機能を実行するよう指示できます。
- 2デバイスのインタラクションを視覚的にテストLLMを使用する前に、MCP Inspectorを使用して特定のRPCがtoolとして正しく公開されていることを確認できます。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
設定
TINYMCP_API_KEYTINYMCP_DEVICETINYMCP_PROJECT
| 名前 | 説明 | 種類 |
|---|---|---|
| TINYMCP_API_KEY | — | |
| TINYMCP_DEVICE | — | |
| TINYMCP_PROJECT | — |
自動チェック
実行日 2026年11月15日完全なレポート →まだ検証されていません。サーバーには80点のスコア、重大な問題がないこと、および検証に必要な十分なデータが必要です。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能golioth/tinymcp is public and reachablegithub.com/golioth/tinymcp ↗合格
- パッケージがこのリポジトリをソースとして指定未チェック
- ビルドの来歴 (Sigstore 証明)未チェック
- オープンソースライセンス (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2025-07-03github.com/golioth/tinymcp ↗検出事項
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していない未チェック
- パッケージおよびその依存関係に重大な勧告なし未チェック
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るtinymcp
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.
tinymcp MCPのよくある質問
tinymcpを使用するためにデバイスのファームウェアを修正する必要がありますか?
いいえ、LightDB Stateスキーマを介してRPCを公開することで、Goliothプラットフォーム上の既存のデバイスをファームウェアの変更なしで使用できます。
サーバーを実行するために必要な環境変数は何ですか?
GoliothのプロジェクトID、デバイスID、およびGoliothプロジェクトのAPI keyを提供する必要があります。
Claude Codeで使用できますか?
はい、HTTPトランスポートを介して単一のコマンドを使用することで、実行中のtinymcpサーバーをClaude Codeに追加できます。