MCP

Intelligence Telegram pour recherche, risque et communautés MCP Server

Outils MCP pour Telegram

URL de base

https://mcp.pressmonitor.com/telegram/v1

Authentification

Les appels MCP utilisent aussi un jeton Bearer avec des requetes JSON-RPC 2.0.

Authorization: Bearer YOUR_TOKEN

Decouvrir les outils

Commencez par lister les outils exposes par le serveur MCP.

curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
tool bot_info

Bot Info

Bot Info

Arguments

Nom Type Obligatoire Description
username string Oui Username

Exemples de code

curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bot_info","arguments":{"username":"SOME_STRING_VALUE"}}}'
tool channel_info

Channel Info

Channel Info

Arguments

Nom Type Obligatoire Description
username string Oui Username

Exemples de code

curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"channel_info","arguments":{"username":"SOME_STRING_VALUE"}}}'
tool get_messages

Get Messages

Get Messages

Arguments

Nom Type Obligatoire Description
username string Oui Username
offset string Non Offset

Exemples de code

curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_messages","arguments":{"username":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool group_info

Group Info

Group Info

Arguments

Nom Type Obligatoire Description
username string Oui Username

Exemples de code

curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"group_info","arguments":{"username":"SOME_STRING_VALUE"}}}'
tool search_hashtag

Search Hashtag

Search Hashtag

Arguments

Nom Type Obligatoire Description
hashtag string Oui Hashtag
offset string Non Offset

Exemples de code

curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_hashtag","arguments":{"hashtag":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool user_info

User Info

User Info

Arguments

Nom Type Obligatoire Description
username string Oui Username

Exemples de code

curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"user_info","arguments":{"username":"SOME_STRING_VALUE"}}}'