mcpField
U
utility-tools

utility-tools

github.com/vikiboss生産性4783 回インストール34 週間前に更新
リポジトリ

utility-tools について

APIを利用して、よく使われる検索やコンテンツ生成を行うスキルです。翻訳、IP・WHOIS検索、QRコード、ハッシュ、Open Graphメタデータ、パスワード生成に対応します。

主な機能

  1. 01IPの所在地とISPの検索
  2. 02複数言語のテキスト翻訳
  3. 03テキストやURLからのQRコード生成
  4. 04MD5、SHA1、SHA256、SHA512のハッシュ計算
  5. 05Open Graphメタデータ抽出とWHOIS検索
  6. 06条件を指定したパスワード生成

活用シーン

  1. 01対応言語間でのテキスト翻訳
  2. 02URL用QRコードの作成
  3. 03パスワードハッシュやランダムパスワードの生成
  4. 04ページのメタデータを使ったリンクプレビュー作成

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/vikiboss/60s-skills --skill utility-tools

インストール後、Claude Code で/utility-toolsを入力して読み込まれたか確認します。

詳細

ユーティリティツールスキル

このスキルでは、翻訳、IP アドレスの検索、QR コードの生成など、一般的なタスクに使えるさまざまなユーティリティ機能を提供します。

利用可能なツール

  1. IP アドレス検索 - 任意の IP アドレスの位置情報と ISP 情報を取得します
  2. テキスト翻訳 - 複数の言語間でテキストを翻訳します
  3. QR コード生成 - 任意のテキストや URL から QR コードを作成します
  4. ハッシュ計算 - MD5、SHA1、SHA256、SHA512 を計算します
  5. OG メタデータ抽出 - URL から Open Graph メタデータを抽出します
  6. WHOIS 検索 - ドメインの登録情報を取得します
  7. パスワード生成 - 安全なランダムパスワードを生成します

API エンドポイント

ツールエンドポイントメソッド
IP 検索/v2/ipGET
翻訳/v2/fanyiPOST
QR コード/v2/qrcodeGET
ハッシュ/v2/hashPOST
OG メタデータ/v2/ogPOST
WHOIS/v2/whoisGET
パスワード/v2/passwordGET

1. IP アドレス検索

import requests

# Lookup specific IP
response = requests.get('https://60s.viki.moe/v2/ip', params={'ip': '8.8.8.8'})
ip_info = response.json()

print(f"IP: {ip_info['ip']}")
print(f"Location: {ip_info['location']}")
print(f"ISP: {ip_info['isp']}")

# Get your own IP info (no params)
my_ip = requests.get('https://60s.viki.moe/v2/ip').json()

2. テキスト翻訳

# Translate text
data = {
    'text': 'Hello World',
    'from': 'en',  # or 'auto' for auto-detection
    'to': 'zh'     # target language
}

response = requests.post('https://60s.viki.moe/v2/fanyi', json=data)
translation = response.json()

print(f"Original: {translation['text']}")
print(f"Translated: {translation['result']}")
print(f"From: {translation['from']} To: {translation['to']}")

対応言語:

  • zh - 中国語
  • en - 英語
  • ja - 日本語
  • ko - 韓国語
  • fr - フランス語
  • de - ドイツ語
  • es - スペイン語
  • ru - ロシア語
  • その他...
# Get supported languages
response = requests.post('https://60s.viki.moe/v2/fanyi/langs')
languages = response.json()

3. QR コード生成

# Generate QR code
params = {
    'text': 'https://github.com/vikiboss/60s',
    'size': 300  # pixels, default 200, min 50, max 1000
}

response = requests.get('https://60s.viki.moe/v2/qrcode', params=params)

# Save the QR code image
with open('qrcode.png', 'wb') as f:
    f.write(response.content)

4. ハッシュ計算

# Calculate hash
data = {
    'text': 'Hello World',
    'algorithm': 'md5'  # md5, sha1, sha256, sha512
}

response = requests.post('https://60s.viki.moe/v2/hash', json=data)
result = response.json()

print(f"Algorithm: {result['algorithm']}")
print(f"Hash: {result['hash']}")

5. OG メタデータ抽出

# Extract Open Graph metadata from URL
data = {'url': 'https://github.com/vikiboss/60s'}

response = requests.post('https://60s.viki.moe/v2/og', json=data)
metadata = response.json()

print(f"Title: {metadata['title']}")
print(f"Description: {metadata['description']}")
print(f"Image: {metadata['image']}")
print(f"URL: {metadata['url']}")

6. WHOIS 検索

# Domain WHOIS information
params = {'domain': 'github.com'}

response = requests.get('https://60s.viki.moe/v2/whois', params=params)
whois_info = response.json()

print(f"Domain: {whois_info['domain']}")
print(f"Registrar: {whois_info['registrar']}")
print(f"Created: {whois_info['created_date']}")
print(f"Expires: {whois_info['expiration_date']}")

7. パスワード生成

# Generate secure password
params = {
    'length': 16,        # 6-128
    'numbers': True,     # include numbers
    'lowercase': True,   # include lowercase
    'uppercase': True,   # include uppercase
    'symbols': True      # include special characters
}

response = requests.get('https://60s.viki.moe/v2/password', params=params)
password_data = response.json()

print(f"Password: {password_data['password']}")
print(f"Strength: {password_data['strength']}")

使用例

多言語チャットボット
def auto_translate(text, target_lang='zh'):
    data = {
        'text': text,
        'from': 'auto',
        'to': target_lang
    }
    response = requests.post('https://60s.viki.moe/v2/fanyi', json=data)
    return response.json()['result']

# Usage
user_input = "Hello, how are you?"
translated = auto_translate(user_input, 'zh')
print(translated)  # 你好,你好吗?
QR コード付き URL 短縮サービス
def create_qr_for_url(url, size=200):
    params = {'text': url, 'size': size}
    response = requests.get('https://60s.viki.moe/v2/qrcode', params=params)
    return response.content

# Generate and save
qr_image = create_qr_for_url('https://example.com')
with open('url_qr.png', 'wb') as f:
    f.write(qr_image)
セキュリティツール
def check_password_hash(password):
    """Generate multiple hashes for password"""
    algorithms = ['md5', 'sha1', 'sha256', 'sha512']
    hashes = {}
    
    for algo in algorithms:
        data = {'text': password, 'algorithm': algo}
        response = requests.post('https://60s.viki.moe/v2/hash', json=data)
        hashes[algo] = response.json()['hash']
    
    return hashes

def generate_secure_password(length=16):
    params = {
        'length': length,
        'numbers': True,
        'lowercase': True,
        'uppercase': True,
        'symbols': True
    }
    response = requests.get('https://60s.viki.moe/v2/password', params=params)
    return response.json()['password']
Web サイトのプレビューカード
def get_link_preview(url):
    """Get rich preview data for a URL"""
    data = {'url': url}
    response = requests.post('https://60s.viki.moe/v2/og', json=data)
    og = response.json()
    
    preview = f"""
    📄 {og['title']}
    📝 {og['description']}
    🖼️ {og['image']}
    🔗 {og['url']}
    """
    return preview

ベストプラクティス

  1. 翻訳:原文の言語がわからない場合は、auto を使用します
  2. QR コード:多くの用途では、サイズを 200~500px にします
  3. ハッシュ:セキュリティ用途では、SHA256 または SHA512 を使用します
  4. パスワード:強力なパスワードにするため、必ずすべての文字種を使用します
  5. エラー処理:入力を必ず検証し、API エラーを処理します

使用例

ユーザー:「把这段话翻译成英文:你好世界」
data = {'text': '你好世界', 'from': 'zh', 'to': 'en'}
response = requests.post('https://60s.viki.moe/v2/fanyi', json=data)
print(response.json()['result'])  # Hello World
ユーザー:「生成一个强密码」
params = {'length': 20, 'symbols': True, 'uppercase': True, 'lowercase': True, 'numbers': True}
response = requests.get('https://60s.viki.moe/v2/password', params=params)
print(f"🔐 生成的密码:{response.json()['password']}")
ユーザー:「查询这个IP地址的位置:1.1.1.1」
response = requests.get('https://60s.viki.moe/v2/ip', params={'ip': '1.1.1.1'})
info = response.json()
print(f"📍 IP: {info['ip']}")
print(f"🌍 位置: {info['location']}")
print(f"🏢 运营商: {info['isp']}")

関連リソース

コメント