hap-oauth-mcp
HAP個人認証MCPの生成
手動でOAuthフローを操作することなく、HAP個人認証MCP設定の取得と更新を支援します。
HAP AI Connect機能が正式にリリースされる前(ユーザーがHAPのSkill、MCP、CLIを各AIツールとより便利に接続できるようにする機能)に、このSkillを通じて個人用MCPを取得/更新し、HAP API(個人認証)MCPの価値を体験できます。
HAP個人認証とは
HAPは標準的なOAuth 2.0認証メカニズムを提供しており、ユーザーはサードパーティアプリケーションに対して、ユーザー自身のIDでHAP内のデータに安全にアクセスまたは操作する権限を付与できます。これは単なる認証方式のアップグレードではなく、HAPが「システム機能の開放」から「ユーザーレベルの機能開放」へと進むための重要なインフラです。
「システム認証」から「ユーザー認証」へのアップグレード — 「アプリケーション権限による実行」から「ユーザーIDによる実行」へ転換
よりきめ細やかな権限制御(Scope) — 権限の最小化、リソースと操作範囲の指定
短いライフサイクルの認証情報によりセキュリティリスクを低減 — トークンのデフォルト有効期限は1日、ローテーション可能で漏洩時の影響を限定
ユーザーはいつでも認証を取り消し可能 — 権限が「回収不能」から「制御可能、取り消し可能、管理可能」へ
すべての呼び出しに明確なID帰属 — 監査、コンプライアンス追跡、ユーザー行動分析をサポート
Related MCP server: RednoteMCP
利用ガイド
詳細な手順はこちら:個人権限MCP利用ガイド
準備するもの
HAPアカウントとパスワード(メールアドレスまたは携帯電話番号でのログイン)のみが必要です。
Skillのインストール
Claude Code
claude skill add --name hap-oauth-mcp https://github.com/garfield-bb/hap-oauth-mcp.gitその他のAIツール(自然言語によるインストール)
会話の中で直接次のように伝えてください:
このskillをインストールして:https://github.com/garfield-bb/hap-oauth-mcp.git
使用方法
インストール後、AIに直接次のように伝えてください:
HAP個人MCPを設定して。アカウントは
your@email.com、パスワードはxxx
AIが自動的にログイン、OAuth認証、トークンの取得を行い、最終的にMCPクライアントに直接貼り付け可能な設定JSONを返します:
{
"HAP Personal MCP": {
"url": "https://api2.mingdao.com/mcp?Authorization=Bearer <your_token>"
}
}初回認証時は、ブラウザでOAuthの確認を行うようAIが案内します。その後、トークンの更新に再操作は不要です。
セキュリティに関する説明
すべてのコードはローカルで実行され、アカウントとパスワードがサードパーティのサービスを経由することはありません。技術的なパス:ローカルでHAPログインインターフェースを呼び出し(Web版と同じRSA暗号化)、公式のOAuth統合インターフェースを通じてトークンを取得および更新します。
This server cannot be deployed
Maintenance
Related MCP Connectors
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables automated GitHub login through browser automation using Playwright. Provides MCP tools for programmatic authentication to GitHub accounts with credential management.1-
- FlicenseNot gradedqualityDmaintenanceEnables automated interaction with Xiaohongshu (Little Red Book) to search for notes, retrieve content or comments, and post targeted smart comments. It utilizes Playwright to manage browser-based tasks such as secure login and automated engagement.124-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to automatically publish photo notes to Xiaohongshu (RedNote) using Playwright browser automation. It supports title, body, and image uploads while maintaining persistent login sessions for seamless automated posting.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables automated Douyin video uploads and account management using Playwright for browser simulation. It supports QR code login, cookie persistence, and automated metadata handling for publishing videos through natural language or API commands.386MIT