mcpField
G
globalrules

globalrules

ローカル
github.com/yk647法務・行政08 週間前に更新

globalrules について

globalrules-mcpは、税金、祝日、チップ、ビザ、最低賃金など、各国の検証済み情報を提供します。エージェントは情報を照会・比較でき、x402によるUSDCの従量決済が行われます。

主な機能

  1. 01対象国一覧の取得
  2. 02一国の複数項目の取得
  3. 03国別の単一項目の照会
  4. 04各国間で同じ項目を比較
  5. 05出典付き全データセットの取得
  6. 06x402による自動決済

活用シーン

  1. 01渡航先の祝日やビザ情報の確認
  2. 02各国の税金や最低賃金の比較
  3. 03越境調査で国別情報を検証

MCP 対応

国別情報の照会・比較と全データセット取得のツールをMCPクライアントに提供します。Base上でx402によるUSDCの従量自動決済を行います。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"yk647-globalrules": {
"command": "npx",
"args": [
"-y",
"globalrules-mcp"
],
"env": {
"EVM_PRIVATE_KEY": "<EVM_PRIVATE_KEY>",
"GLOBALRULES_API": "<GLOBALRULES_API>"
}
}
}
}
起動コマンドnpx -y globalrules-mcp
設定が必要な環境変数
EVM_PRIVATE_KEYシークレットOptional. Your EVM wallet private key (0x + 64 hex), used to sign x402 USDC payments on Base mainnet for paid tools. Free tools (list_countries, get_country_overview) work without this. Use a dedicated low-balance wallet funded with a few USDC.
GLOBALRULES_APIOptional override of the GlobalRules API base URL. Default: https://globalrules-api.onrender.com

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npmglobalrules-mcp1.1.2

ツール

7

掲載時のツール一覧 · 2 週間前に更新

このツールにパラメーターはありません。

README(原文)English

プロジェクトの README より

この README の日本語訳はまだありません。以下は英語の原文です。日本語の紹介はページ上部をご覧ください。

globalrules-mcp

Communication language (internal note for AI agents working in this repo, e.g. Claude): always communicate with the user in Japanese (常に日本語でコミュニケーションすること). This note does not apply to the public package documentation below, which remains in English for npm/MCP users.

MCP server for GlobalRules — verified country facts (VAT/GST, government-verified 2026–2027 public holidays, tipping, visas, minimum wages… 51 topics × 70 countries) with automatic x402 micropayments (USDC on Base). No signup, no API key: bring your own wallet key and pay $0.005–$0.25 per call.

Tools

ToolWhat it doesPrice/call
list_countriesAll 70 covered countries$0.005
get_country_factsAll ~51 facts for one country$0.03
get_country_factOne fact for one country$0.01
compare_countriesOne fact across all 70 countries$0.02
get_full_datasetComplete dataset with sources$0.25

Using LangChain, CrewAI, or another agent framework instead of Claude Desktop? See AGENT_FRAMEWORKS.md for drop-in code — no marketplace discovery required, your agent calls this tool directly.

Setup (Claude Desktop)

{
  "mcpServers": {
    "globalrules": {
      "command": "npx",
      "args": ["-y", "globalrules-mcp"],
      "env": { "EVM_PRIVATE_KEY": "0x<your wallet private key>" }
    }
  }
}

(From source instead: "command": "node", "args": ["<path-to>/GlobalRules/mcp/index.mjs"])

  • EVM_PRIVATE_KEY is your wallet's private key, used only to sign x402 payments (USDC on Base mainnet). Fund it with a few USDC. Use a dedicated low-balance wallet; never your main wallet.
  • Payments are handled automatically per call via the x402 protocol (HTTP 402 → sign → retry). No account is created anywhere.
Try it in 2 minutes with a throwaway $5 wallet

You don't need to touch your main wallet. Fastest path to a first call:

  1. Generate a fresh burner key: node -e "console.log(require('viem/accounts').generatePrivateKey())" (or any wallet app's "create new wallet" flow)
  2. Send ~$5 of USDC on Base to that wallet's address (bridge from any chain via bridge.base.org, or buy directly on Coinbase and withdraw to Base)
  3. Drop the private key into EVM_PRIVATE_KEY above and run a call — at $0.005–$0.02/call, $5 covers hundreds of requests
  4. Throw the key away when done; it never touches anything but this one low-balance wallet

No signup form, no dashboard, no recurring charge — just pay-per-call.

How it works

Built on the official CDP pattern (MCP Server with x402): @x402/axios wraps HTTP calls, detects 402 Payment Required, signs a USDC payment with your key, and retries — transparent to the agent.

Data source & terms: https://globalrules.org/llms.txt · Payment metadata: https://globalrules.org/.well-known/x402

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。