Inteligência de Plataforma MCP
YouTubeServidor MCP
O YouTube alcança mais de 2 bilhões de usuários logados mensalmente em vídeos, Shorts, transmissões ao vivo e podcasts, tornando-se importante para visibilidade em busca, educação, narração de marca e demanda liderada por criadores.
MCP Versão: 1.0.0 3 Ferramentas MCP Autenticação
URL base
https://mcp.pressmonitor.com/youtube/v1 Autenticação
As chamadas MCP também usam tokens Bearer em solicitações JSON-RPC 2.0.
Authorization: Bearer YOUR_TOKEN Descubra Ferramentas
Comece listando as ferramentas expostas pelo servidor 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 Pesquisar vídeos no YouTube
Pesquisar vídeos no YouTube
Argumentos
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| query_text | string | Sim | Texto da consulta de pesquisa |
| num | string | Não | Número máximo de resultados |
| order | string | Não | Ordem de classificação |
| event-type | string | Não | Filtro de tipo de evento ao vivo |
| token | string | Não | Token de paginação |
| country_code | string | Não | Código da região |
| lang_code | string | Não | Código do idioma de relevância |
Exemplos de Código
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 Chamada genérica da API de dados do YouTube
Chamada genérica da API de dados do YouTube
Argumentos
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| path | string | Não | Caminho da API sob /youtube/v3 |
| endpoint | string | Não | Caminho alternativo da API caso path não seja usado |
| method | string | Não | Método HTTP, padrão GET |
Exemplos de Código
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 Obter informações detalhadas para um ou mais vídeos
Obter informações detalhadas para um ou mais vídeos
Argumentos
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| video_ids | string | Sim | IDs de vídeos do YouTube separados por vírgula |
Exemplos de Código
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())