toolkit-mcp-server
公開ホストサーバー: https://toolkit.caseyjhand.com/mcp
ツール
7つのツール。5つは常時有効で設定不要 — 純粋な計算ユーティリティとSSRFフリーのIPルックアップ。残り2つはサーバーホストを調査するもので、デフォルトではtools/listに表示されず、オプトインが必要で、フェイルクローズドです。
ツール | 説明 |
| 暗号学的ダイジェスト(sha256/sha512/sha1/md5)を生成するか、値を期待されるダイジェストと定数時間比較します。 |
| 暗号学的にランダムな識別子(UUIDv4、UUIDv7、ULID)を、単一または最大1000個のバッチで生成します。 |
| テキストまたはURLをQRコードにエンコードし、SVGマークアップ、base64 PNG、または端末表示可能な文字列として出力します。 |
| 値をbase64、base64url、hex、URLパーセントエンコーディングのいずれかでエンコードまたはデコードします(双方向)。 |
| 公開IPまたはホスト名を地理的・ネットワークメタデータ(国、都市、座標、ASN、タイムゾーン)に解決します。 |
| ゲート付き、デフォルトでオフ。 サーバーホストからの読み取り専用ネットワーク診断 — ping、traceroute、TCP接続、または出口IP検出。 |
| ゲート付き、デフォルトでオフ。 サーバーホストのシステム状態の一面(OS、CPU、メモリ、ロード平均、ネットワークインターフェース)を報告します。 |
toolkit_hash_value
ダイジェストを生成するか、値を期待値と定数時間で検証します。
operation:generate(小文字16進ダイジェスト)またはcompare(timingSafeEqualによるタイミングセーフチェック)アルゴリズム: セキュリティ用途には
sha256(デフォルト)とsha512。sha1とmd5はチェックサムやファイル整合性の互換性のためだけに公開 — パスワードや署名には絶対に使用しないでくださいinputEncodingはvalueをutf8(デフォルト)、hex、base64として読み取るため、バイナリブロブはデコードの往復をスキップします標準的な使用例: ダウンロードをベンダー公開のチェックサムと照合する
toolkit_generate_id
プラットフォームのCSPRNGから暗号学的にランダムな識別子を生成します — モデルがでっち上げた値とは異なり、予測不可能でなければならないIDに適した正しいソースです。
type:uuid_v4(ランダム、デフォルト)、uuid_v7(時間順、作成順にソート可能)、またはulid(26文字のCrockford base32、辞書順ソート可能)countは1回の呼び出しで最大1000個のバッチを生成。返されるids配列は常に正確にcount個の値を保持しますuuid_v7とulidのバッチは単調増加 — 同じミリ秒内でも厳密に増加するため、idsは作成順にソートされた状態を保ちます読み取り専用 — 生成しても何も変更しませんが、決して冪等ではないため、クライアントはバッチをキャッシュしたり重複排除したりしません
toolkit_generate_qr
テキストまたはURLをQRコードにエンコードします。
format:svg(インラインマークアップ)、png_base64(mimeTypeとbyteLengthを含むラスターバイト)、またはterminal(Unicodeブロック文字列)errorCorrection(L/M/Q/H)はデータ容量と損傷耐性をトレードオフします。marginはクワイエットゾーンの幅を設定。scaleはラスター出力のモジュールあたりのピクセル数を設定します返される
version(1–40)はエンコードされたデータの密度を反映しますpng_base64はMCP画像コンテンツブロックとしても届くため、content[]を読み取るクライアントはstructuredContentをデコードせずにコードをレンダリングできますレンダリングされたPNGは一辺2048ピクセルに制限 —
(modules + 2 × margin) × scale— そのため、高スケールの高密度シンボルは、適合するスケールを指定した型付きraster_too_largeエラーで拒否されます。svgとterminalは無制限ですdataは2953バイトに制限 — 絶対上限(バージョン40、レベルL、バイトモード)。使用可能容量はerrorCorrectionレベルが高いほど低くなるため、容量超過の入力は一般的な失敗ではなく、型付きdata_too_largeエラーで拒否されます
toolkit_encode_value
値を双方向でエンコードまたはデコードします。
encoding:base64、base64url(URLセーフなアルファベット)、hex、またはurl(パーセントエンコーディング)operation:encode(生のUTF-8 → エンコード)またはdecode(エンコードされた値 → テキスト)不正なデコード入力は、復旧ヒント付きの型付き
decode_failedエラーを返します。黙ってベストエフォートで処理することはありません
toolkit_geolocate_ip
公開IPまたはホスト名を地理的・ネットワークメタデータに解決します。
国、地域、都市、緯度/経度、ASN、所有組織、タイムゾーンを返します
proxy、hosting、mobileは、アドレスがプロキシ/VPN/Tor出口、データセンターネットワーク、モバイルキャリアである場合にフラグを立てます — これらのいずれかがtrueの場合、座標は人物ではなくインフラストラクチャを表します。プロバイダーが報告しない場合は存在しませんホスト名は最初にDNS解決されます。
resolvedIpは実際に位置特定されたIPを反映し、sourceは応答したプロバイダーを指定しますSSRFフリー — サーバーはプロバイダーを呼び出し、ターゲットは呼び出しません。解決されたIPはプライベート範囲に対して再チェックされ、プライベート/予約済みアドレスは拒否されます(公開ジオロケーションはありません)
ベストエフォートかつプロバイダーに依存: VPN、プロキシ、モバイルNAT、エニーキャストはすべてIP-to-locationを無効にし、精度はせいぜい市区町村レベルであり、欠落フィールドは未知として報告され、でっち上げられることはありません
プロバイダー提供の文字列は、レスポンスに到達する前に切り詰められ、制御文字が除去されるため、レジストリ管理テキスト(
org、isp、as)がモデルのコンテキストを溢れさせたり、書式を乱したりすることはありませんデフォルトではキー不要(ip-api無料ティア、平文HTTP —
TOOLKIT_GEO_BASE_URLを参照)。結果は解決されたIPごとにメモリ内にキャッシュされ、固定エントリ上限があります
toolkit_check_network
ゲート付き — TOOLKIT_ENABLE_NET_DIAGNOSTICS=trueの場合のみ登録されます。サーバーホストからの読み取り専用ネットワーク診断。
mode:ping(ICMPラウンドトリップ)、traceroute(ターゲットへのホップパス)、connectivity(targetのportへの生のTCP接続)、またはpublic_ip(ホスト自身の出口IP)応答しないホストは
reachable: falseとして報告されます — 有効な結果であり、エラーではありませんサーバー自身のネットワークを診断するため、ローカルまたはセルフホストデプロイメントで有用です。プライベート/予約済み/内部ターゲットに到達するには、さらに
TOOLKIT_ALLOW_PRIVATE_NETWORK=trueが必要です。これにより、クラウドメタデータエンドポイントはデフォルトでブロックされたままになります
toolkit_check_system
ゲート付き — TOOLKIT_ENABLE_SYSTEM_INFO=trueの場合のみ登録されます。サーバーホストのシステム状態の一面を読み取り専用で報告します。
what:os、cpu、memory、load、またはinterfaces呼び出しごとに、
whatに一致する1つのファセットオブジェクトのみが設定されますこのサーバーが動作するホストを記述し、呼び出し元のクライアントではありません — ローカルまたはセルフホストデプロイメントで意味があります。
osとinterfacesはホストのトポロジーとバージョン詳細を開示するため、デフォルトでゲートオフになっています
Related MCP server: IT Tools MCP Server
機能
宣言的ツール定義 — ツールごとに1ファイル、フレームワークが登録と検証を処理
統一エラーハンドリング — ハンドラーがスローし、フレームワークがキャッチ、分類、フォーマット
型付きエラー契約 — 失敗する可能性のある各ツールは、エージェントが行動できる復旧ヒントとともに失敗理由を宣言
プラグイン可能な認証:
none、jwt、oauth構造化ログ、オプションのOpenTelemetryトレーシング
STDIOおよびStreamable HTTPトランスポート
ツールキット固有:
フェイルクローズドゲーティング — 2つのホスト調査ツールは、明示的に有効にしない限り
tools/listに存在しないため、ホスト型インスタンスはSSRFや情報開示の表面を露出しません2層ネットワークゲート — 診断が有効でも、プライベート/予約済み/ループバック/リンクローカルターゲット(クラウドメタデータエンドポイントを含む)は、2番目のフラグで許可されるまでブロックされたまま
CSPRNGバックエンドのプリミティブ — 識別子とダイジェストはプラットフォームの暗号ソースから取得され、ハッシュ比較は
timingSafeEqualによる定数時間SSRFフリーのジオロケーション — サーバーがプロバイダーを呼び出し、次にDNS解決されたIPをプライベート範囲に対して再チェックしてからルックアップを実行するため、ホスト名が内部アドレスへのリクエストを密輸することはできません
エージェントフレンドリーな出力:
出所 — ジオロケーションは解決されたIPを反映し、応答したプロバイダーを指定。欠落した上流フィールドは未知として報告され、決してでっち上げられません
ダウンしているが有効な結果 — 到達不能なホストはエラーではなく
reachable: falseを返すため、呼び出し元は例外テキストではなくデータに基づいて分岐します型付き失敗理由 — デコード失敗、ダイジェスト欠落、ブロックされたプライベートターゲットはそれぞれ、構造化された理由と次のステップの復旧ヒントを伴います
はじめに
公開ホストインスタンス
公開インスタンスはhttps://toolkit.caseyjhand.com/mcpで利用可能 — インストール不要。Streamable HTTP経由で任意のMCPクライアントから接続:
{
"mcpServers": {
"toolkit-mcp-server": {
"type": "streamable-http",
"url": "https://toolkit.caseyjhand.com/mcp"
}
}
}セルフホスト / ローカル
以下をMCPクライアント設定ファイルに追加してください。APIキーは不要 — 5つの常時有効ツールとデフォルトのキーレスジオロケーションティアがそのまま動作します。
{
"mcpServers": {
"toolkit-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/toolkit-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}またはnpxを使用(Bun不要):
{
"mcpServers": {
"toolkit-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/toolkit-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}またはDockerを使用:
{
"mcpServers": {
"toolkit-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/toolkit-mcp-server:latest"]
}
}
}ゲート付きホスト調査ツールを有効にするには、env(Dockerの場合は-e)にフラグを追加:
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"TOOLKIT_ENABLE_NET_DIAGNOSTICS": "true",
"TOOLKIT_ENABLE_SYSTEM_INFO": "true"
}Streamable HTTPの場合は、トランスポートを設定してサーバーを起動:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp前提条件
Bun v1.3.2以上(またはNode.js v24+)。
APIキー不要 — ジオロケーションはデフォルトでキーレスのip-api無料ティアを使用します。
インストール
リポジトリをクローン:
git clone https://github.com/cyanheads/toolkit-mcp-server.gitディレクトリに移動:
cd toolkit-mcp-server依存関係をインストール:
bun install設定
すべての変数はオプションです。サーバー固有のオプションは、src/config/server-config.ts の Zod スキーマを介して起動時に検証されます。
変数 | 説明 | デフォルト値 |
| ゲート付きの |
|
| ゲート付きの |
|
| ネットワーク診断が有効な場合、プライベート/予約済み/ループバックターゲットを許可します。2 つ目の明示的なゲートです。 |
|
| ジオロケーションエンドポイントの API キー(必要な場合)。 | なし |
| ip-api 互換のジオロケーションエンドポイントのベース URL。デフォルトは平文 HTTP です。ip-api の HTTPS エンドポイントはキーレス無料ティアの一部ではなく、有料キーがないと |
|
| インメモリジオロケーションキャッシュの TTL(秒)。 |
|
| 1 分あたりの最大ジオロケーションリクエスト数。 |
|
| トランスポート: |
|
| HTTP サーバーのポート。 |
|
| 認証モード: |
|
| ログレベル(RFC 5424)。 |
|
| OpenTelemetry 計装(スパン、メトリクス、完了ログ)を有効にします。 |
|
オプションのオーバーライドの完全なリストについては、.env.example を参照してください。
サーバーの実行
ローカル開発
ビルドと実行:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpチェックとテストの実行:
bun run devcheck # Lint, format, typecheck, security, changelog sync bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker build -t toolkit-mcp-server .
docker run --rm -e MCP_TRANSPORT_TYPE=http -p 3010:3010 toolkit-mcp-serverDockerfile はデフォルトで HTTP トランスポート、ステートレスセッションモードを使用し、ログを /var/log/toolkit-mcp-server に出力します。OpenTelemetry のピア依存関係はデフォルトでインストールされます。これらを省略するには、--build-arg OTEL_ENABLED=false を指定してビルドしてください。
プロジェクト構造
ディレクトリ | 目的 |
|
|
| サーバー固有の環境変数の解析と Zod による検証。 |
| ツール定義( |
| ジオロケーションサービス — DNS 解決、リトライ/バックオフ付きプロバイダー呼び出し、正規化、インメモリキャッシュ。 |
| ネットワーク診断サービスと、共有ターゲットバリデーターおよびプライベート範囲分類子。 |
|
|
開発ガイド
開発ガイドラインとアーキテクチャルールについては、CLAUDE.md / AGENTS.md を参照してください。簡単にまとめると:
ハンドラーはスローし、フレームワークがキャッチします — ツールロジック内で
try/catchは使用しないでくださいリクエストスコープのログには
ctx.logを、テナントスコープのストレージにはctx.stateを使用します新しいツールは
src/index.tsのcreateApp()配列に登録します2 つのホストプローブツールは、それぞれの有効化フラグの背後に登録されます。ネットワークターゲットゲートは DNS 解決後に検証します — 特定不能または到達不能なターゲットに対して結果を捏造しないでください
貢献
Issue とプルリクエストを歓迎します。提出前にチェックとテストを実行してください:
bun run devcheck
bun run testライセンス
Apache-2.0 — 詳細は LICENSE を参照してください。
Available Tools
5 toolstoolkit_encode_valuetoolkit-mcp-server: encode valueARead-onlyIdempotentInspect
Encode or decode a value across base64, base64url, hex, or URL (percent) encoding, in either direction. Set operation to "encode" to transform raw UTF-8 text into the chosen encoding, or "decode" to recover the original bytes from an encoded value. Decoded bytes come back as UTF-8 text by default; set outputEncoding to "hex", "base64", or "base64url" (unpadded, the form JWK members, JWS signatures, and PKCE code challenges use) to receive them re-encoded instead, which is lossless for binary data and transcodes between encodings (a base64 digest to hex, or hex key bytes to base64url, for example). Decoding never substitutes replacement characters: bytes that are not valid UTF-8 text are reported as a recoverable error that points at outputEncoding. Whitespace in hex, base64, and base64url values is ignored, so line-wrapped MIME bodies and PEM bodies decode as-is (drop PEM's -----BEGIN/END----- lines, which are not base64). base64url uses the URL-safe alphabet (- and _ instead of + and /); url applies encodeURIComponent and percent-decoding. A value that is malformed for the chosen encoding is reported as a recoverable error, not a silent best-effort.
Inputs: value (required), encoding (required), operation (required), outputEncoding. Returns: error, result, encoding, operation, +1 more
toolkit_generate_idtoolkit-mcp-server: generate idARead-onlyInspect
Mint cryptographically-random identifiers using the platform CSPRNG — the correct source for IDs that must be unpredictable, unlike model-generated values. type selects the format: uuid_v4 (random, the default), uuid_v7 (time-ordered, sortable by creation), or ulid (26-char Crockford-base32, lexicographically sortable). Set count to mint a batch in one call (up to 1000); the returned ids array always contains exactly count values and is never truncated. For uuid_v7 and ulid, a batch is monotonic — strictly increasing even within the same millisecond — so the ids array stays in sorted creation order; ids minted in the same millisecond are separated by random gaps, so no id in a batch can be derived from another. IDs from this tool feed into toolkit_generate_qr (pass ids[0] as data) to create a scannable code.
Inputs: type, count. Returns: ids, type, count, error
toolkit_generate_qrtoolkit-mcp-server: generate QR codeARead-onlyIdempotentInspect
Encode text or a URL into a QR code. data is the content to encode (a link, a generated identifier such as toolkit_generate_id's ids[0], or any string). format selects the output: svg returns inline SVG markup sized in pixels, png_base64 returns base64-encoded PNG bytes (with mimeType and byteLength), and terminal returns plain Unicode half-block characters (no escape codes) for a monospace display, drawn for a dark background: light modules, quiet zone included, are blocks and dark modules are spaces. errorCorrection (L/M/Q/H) trades data capacity for damage tolerance, margin sets the quiet-zone width in modules, and scale sets pixels per module for svg and png_base64, so both are (modules + 2 × margin) × scale pixels per side. The returned version (1–40) reflects how dense the encoded data is. png_base64 rejects an image past 2048 px per side with a typed raster_too_large error, so a dense symbol needs a lower scale; svg is vector markup and carries no such limit.
Inputs: data (required), scale, format, margin, +1 more. Returns: error, format, content, version, +2 more
toolkit_geolocate_iptoolkit-mcp-server: geolocate IPARead-onlyIdempotentInspect
Resolve a public IP or dotted hostname to country, region, city, coordinates, ASN, AS holder and name, organization, ISP, timezone, and proxy/hosting/mobile flags. Supply target for one lookup or targets for an ordered batch, never both; blank target and empty targets are unset. Batches process the first 100 positions (duplicates retained) and disclose every remainder in unprocessedTargets; at most 1000 inputs are accepted. Each batch position reports its result or an error with recovery, so cached and local outcomes survive quota refusals. The provider is called directly, never the target. Hostnames are DNS-resolved and resolvedIp names the located address. Private/reserved addresses have no public geolocation. Results are best-effort, city-level at best; VPNs, proxies, mobile NAT, and anycast defeat IP-to-location. Read proxy, hosting, and mobile before trusting coordinates: true describes infrastructure, not the user. org can name a customer or sub-allocation rather than the network operator; read isp, asHolder, and asName for the operator. Absent metadata remains unknown. Provider-supplied names are third-party registry text; content[] escapes them so they read as literal text, never as Markdown. source names the provider. Single and batch quotas are independent; cache hits consume neither quota.
Inputs: target, targets. Returns: asn, isp, org, city, +18 more
toolkit_hash_valuetoolkit-mcp-server: hash valueARead-onlyIdempotentInspect
Generate a cryptographic digest or HMAC of a value, or verify a value against an expected digest. Set operation to "generate" for a digest, or "compare" to constant-time-check value against the expected digest — compare is timing-safe and avoids manual string equality checks. Omitting operation compares when expected is supplied and generates otherwise. Algorithm defaults to sha256; sha384 and sha512 are also secure, while md5 and sha1 are exposed ONLY for checksum and file-integrity compatibility and for verifying existing HMAC-SHA1 signatures, and must not be used for passwords, new signatures, or any other security purpose. Set secret to compute HMAC(algorithm, secret, value) instead of a plain digest, for generate and compare alike — the check behind webhook signatures such as GitHub's X-Hub-Signature-256 (pass the header value as expected) and HS256 JWT signatures; secretEncoding says how secret is written (utf8 default, hex, base64, or base64url for a JWK k), the result carries hmac: true, and the secret is never echoed back. digestEncoding selects the generated digest form: lowercase hex (default), base64, base64url (unpadded, the JWS signature form), or sri (-, the npm lockfile integrity and Subresource Integrity form, sha256/sha384/sha512 only, plain digests only). expected is recognized by its shape at the algorithm's digest length, so a published checksum can be pasted as-is: a bare hex, base64, or base64url digest; SRI, which may hold several space-separated entries as an npm integrity field can and matches when any entry for algorithm does; one checksum-file line as sha256sum, shasum, md5, or openssl dgst prints it ( , or SHA256 () = ); or a digest prefixed sha256: or sha256= (OCI and release-asset digests, webhook signature headers). A tag or prefix naming another algorithm fails rather than being ignored, a multi-line checksum file must be cut to the one line for the file, and with secret an SRI value or a tagged line fails, since both carry plain digests. inputEncoding controls how value is read before hashing (utf8 default, or hex/base64 for raw binary data) so binary blobs need no decode round-trip. The canonical use is matching a download against a vendor-published checksum or a lockfile integrity entry.
Inputs: value (required), secret, expected, algorithm, +4 more. Returns: hmac, error, digest, matches, +3 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a clearly different job: hashing, reversible encoding, ID minting, QR rendering, and IP geolocation. The only mild overlap is between hash and encode, since both accept base64/hex encodings and one can transcode digests, but the descriptions make the digest-vs-reversible-transform boundary explicit.
Every tool uses the same toolkit_ prefix followed by a snake_case verb_noun pair: hash_value, encode_value, generate_id, generate_qr, geolocate_ip. The pattern is fully predictable.
Five tools is a sensible size for a general utility server, and each tool carries a distinct capability rather than a thin variant of another. The grouping is inherently a grab bag, so the set is slightly arbitrary in membership but not padded.
Each individual tool covers its sub-domain well: hash does generate and compare/HMAC, encode does both directions with multiple transcodes, id supports three formats with batches, qr supports three output formats, and geolocate supports single and batch. As a general toolkit there are predictable gaps (no time/date or JWT-decode style utilities), but nothing that blocks the advertised workflows.
Maintenance
Related MCP Connectors
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Real-time planetary signal engine and Model Context Protocol (MCP) server for autonomous AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.2-
- AlicenseBqualityFmaintenanceA comprehensive Model Context Protocol server providing access to 70+ IT tools for developers and system administrators, including encoding/decoding, text manipulation, hashing, and network utilities.2100216 npm21TypeScriptMIT
- FlicenseNot gradedqualityDmaintenanceA secure Model Context Protocol server providing HTTP endpoints for AI agent tool execution, including file system operations, shell commands, and LLM-based code generation.1-
- AlicenseAqualityDmaintenanceA Model Context Protocol server providing network diagnostic tools for AI agents, including connectivity testing, batch operations, local network info, and pcap analysis.346MIT