Skip to main content
Glama

fio-net-tools-mcp

ネットとデータを触る小道具を、MCP サーバーとして出します。標準ライブラリだけで動きます(mcp を除く)。

Network and data utilities as an MCP server (stdio). Standard library only, apart from the mcp package.

自律エージェント「フィオ」の道具から切り出した物です。

道具

すること

ssl_cert_info

host:port の証明書(発行者・期限・SAN・TLS の版)

dns_lookup

DNS を引く(A/AAAA は標準ライブラリ、ほかは dig / nslookup があれば)

whois_lookup

whois(IANA に担当を訊いてから本照会・TCP 43)

url_healthcheck

複数 URL の状態と応答時間を並列に

http_request

任意の HTTP リクエスト(ヘッダ・本文・JSON)

json_query

JSON を a.b[0].c の形で掘る

tcp_check

host:port に繋がるかと遅延

encode_decode

base64 / hex / URL と md5 / sha1 / sha256

csv_preview

CSV / TSV の列と先頭の行

  • 失敗は isError: true で返します。返りの字面ではなく型で失敗を分けています(fio-typed-failure と同じ物を同梱)。

  • http_request は外へ書き込む要求(POST など)も送れます。使う側で宛先を確かめてください。

  • 相手の持ち物でない機体を探る道具(ポートを掃く等)は入れていません。

起動

pip install .
fio-net-tools-mcp          # stdio の MCP サーバー

MCP クライアントの設定例は mcp.example.json にあります。

Related MCP server: osint-mcp-server

テスト

pip install -e .[dev]
pytest

テストは手元の口(127.0.0.1)だけを叩きます。外のネットには出ません。

License

MIT

Available Tools

9 tools
csv_previewA

CSV/TSV ファイルの列名と先頭数行を、区切り文字を自動判定して表で返す。行数・列数の概要もつく。表計算データの中身を素早く確かめる用途。

Inputs: path (required), max_rows.

dns_lookupA

ドメインの DNS レコードを引く。A/AAAA は stdlib(getaddrinfo) で確実に、MX/TXT/NS/CNAME/SOA 等は dig または nslookup があればそれ経由で引く(無ければ A/AAAA のみ返し、その旨を明記)。到達先 IP やメール設定の確認に。

Inputs: name (required), record.

encode_decodeA

文字列を base64/hex/URL でエンコード・デコード、または md5/sha1/sha256 のハッシュを計算する。op で操作を選ぶ。トークンやハッシュを人手で確かめる時の常備薬。

Inputs: op (required), text (required).

http_requestA

任意の HTTP リクエストを送る汎用クライアント(stdlib urllib)。GET/POST/PUT/DELETE/PATCH、任意ヘッダ、body(生文字列)または json(dict を JSON 本文化)に対応。返り値はステータス・最終URL・主要ヘッダ・本文(長い場合は先頭を返し総バイト数を明記)。REST API や webhook を叩く時の基礎。

Inputs: url (required), body, json, method, +3 more.

json_queryA

JSON 文字列から path 指定で値を抜き出す(jq-lite)。path は 'data.items[0].name' のようなドット + [索引] 記法。paths に複数渡すと各々を抜く。path 省略時は構造の概要(トップのキー一覧や配列長)を返す。API レスポンスの必要な一片だけ取り出す用途。

Inputs: json_text (required), path, paths.

ssl_cert_infoA

host:port へ TLS 接続し、サーバ証明書の中身を返す(発行者・サブジェクト・有効期間・失効まで残り日数・SAN 一覧・TLS バージョン・暗号スイート)。証明書の期限切れ間近や、どのドメインをカバーしているかを確かめる時に使う。

Inputs: host (required), port, timeout.

tcp_checkA

指定した host:port に TCP 接続できるか(=そのポートで何かが待ち受けているか)を確かめ、接続できたら往復の遅延をミリ秒で返す。サーバやサービスが上がっているかの生死確認に使う。Web の応答は http_request。

Inputs: host (required), port (required), timeout.

url_healthcheckA

複数 URL のステータスコードと応答時間を並列に測る(簡易死活監視)。各 URL についてHTTP ステータス・所要ミリ秒・最終 URL(リダイレクト先)を返す。サービス群がまとめて生きてるか確かめる用。単一 API の中身を見るなら http_request。

Inputs: urls (required), timeout.

whois_lookupA

ドメインの whois を引く(TCP 43)。まず whois.iana.org に TLD の担当サーバを訊き、referral された whois サーバへ本照会する二段構え。登録者・登録日・失効日・ネームサーバ等を返す。stdlib のみで外部 whois コマンド不要。

Inputs: domain (required), timeout.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 9 tools

    Disambiguation4/5

    Each tool targets a distinct operation (HTTP request, JSON extraction, TCP liveness, encode/hash, CSV preview, TLS cert, DNS, whois, multi-URL healthcheck). The closest overlaps are url_healthcheck vs http_request and tcp_check vs ssl_cert_info, but the descriptions explicitly state the boundaries (multi-URL status-only vs full request/body; TCP port liveness vs TLS handshake details).

    Naming Consistency4/5

    Snake_case is used throughout and most names follow a clear resource_action pattern (http_request, csv_preview, tcp_check, ssl_cert_info, dns_lookup, whois_lookup, json_query, url_healthcheck). The only outlier is encode_decode, which uses a verb_verb form instead of the dominant noun_verb shape.

    Tool Count5/5

    Nine tools is well within the sweet spot and each one maps to a concrete network/diagnostic utility. No redundant or trivially thin entries; no obvious tool that should be merged away.

    Completeness4/5

    The surface covers HTTP, JSON, TCP, DNS, whois, TLS, encoding/hashing, CSV, and bulk URL health — a solid lifecycle for network diagnostics. Minor gaps remain: no ICMP ping/traceroute, no generic port-range or UDP check, and csv_preview is the only local-file reader, so broader local inspection isn't supported.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers