プラットフォームインテリジェンス MCP
YouTubeMCPサーバー
YouTubeは、毎月20億以上のログインユーザーにアクセスされ、検索の可視性、教育、ブランドストーリーテリング、クリエイター主導の需要にとって重要です。
MCP バージョン: 1.0.0 3 MCPツール 認証
ベース URL
https://mcp.pressmonitor.com/youtube/v1 認証
MCP呼び出しは、JSON-RPC 2.0リクエストを介してBearerトークンを使用します。
Authorization: Bearer YOUR_TOKEN ツールを探す
MCPサーバーによって公開されているツールのリストを作成します。
curl -X POST \ 'https://mcp.pressmonitor.com/youtube/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' const response = await fetch('https://mcp.pressmonitor.com/youtube/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/list' }) }); console.log(await response.json()); import requests payload = { 'jsonrpc': '2.0', 'id': 1, 'method': 'tools/list' } response = requests.post( 'https://mcp.pressmonitor.com/youtube/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
search YouTube動画を検索
YouTube動画を検索
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| query_text | string | はい | 検索クエリテキスト |
| num | string | いいえ | 最大結果数 |
| order | string | いいえ | 並び順 |
| event-type | string | いいえ | ライブイベントタイプフィルター |
| token | string | いいえ | ページネーショントークン |
| country_code | string | いいえ | 地域コード |
| lang_code | string | いいえ | 関連言語コード |
コード例
curl -X POST \ 'https://mcp.pressmonitor.com/youtube/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query_text":"SOME_STRING_VALUE","num":20,"order":"SOME_STRING_VALUE","event-type":"SOME_STRING_VALUE","token":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search", "arguments": { "query_text": "SOME_STRING_VALUE", "num": 20, "order": "SOME_STRING_VALUE", "event-type": "SOME_STRING_VALUE", "token": "SOME_STRING_VALUE", "country_code": "SOME_STRING_VALUE", "lang_code": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/youtube/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search", "arguments": { "query_text": "SOME_STRING_VALUE", "num": 20, "order": "SOME_STRING_VALUE", "event-type": "SOME_STRING_VALUE", "token": "SOME_STRING_VALUE", "country_code": "SOME_STRING_VALUE", "lang_code": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/youtube/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
call 汎用YouTubeデータAPIコール
汎用YouTubeデータAPIコール
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| path | string | いいえ | /youtube/v3以下のAPIパス |
| endpoint | string | いいえ | path未使用時の代替APIパス |
| method | string | いいえ | HTTPメソッド。デフォルトはGET |
コード例
curl -X POST \ 'https://mcp.pressmonitor.com/youtube/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"call","arguments":{"path":"SOME_STRING_VALUE","endpoint":"SOME_STRING_VALUE","method":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "call", "arguments": { "path": "SOME_STRING_VALUE", "endpoint": "SOME_STRING_VALUE", "method": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/youtube/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "call", "arguments": { "path": "SOME_STRING_VALUE", "endpoint": "SOME_STRING_VALUE", "method": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/youtube/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
get_video_details 1つまたは複数の動画の詳細情報を取得
1つまたは複数の動画の詳細情報を取得
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| video_ids | string | はい | カンマ区切りのYouTube動画ID |
コード例
curl -X POST \ 'https://mcp.pressmonitor.com/youtube/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_video_details","arguments":{"video_ids":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_video_details", "arguments": { "video_ids": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/youtube/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_video_details", "arguments": { "video_ids": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/youtube/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json())