Social data for AI agents,
via MCP
KeyAPI exposes its full social media data suite as native MCP tools using Streamable HTTP. Plug it into any MCP-compatible AI client and let your agents fetch creator profiles, videos, comments, reviews, and more across 11 platforms in real time.
What is MCP?
A universal language for AI tools
The Model Context Protocol (MCP) is an open standard that lets AI models discover and call external tools through a consistent interface. KeyAPI implements MCP over Streamable HTTP, so plain HTTP POST requests are enough.
Each platform has its own endpoint. Select the ones you need, paste the generated config, and your agent can fetch live social data without leaving the conversation loop.
Select platforms:
claude_desktop_config.json
{
"mcpServers": {
"keyapi-tiktok": {
"url": "https://mcp.keyapi.ai/tiktok/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}API Reference
How to call the MCP server
All endpoints use Streamable HTTP (JSON-RPC 2.0 over POST).
Initialize session
Start a Streamable HTTP session by sending an initialize request.
curl -X POST https://mcp.keyapi.ai/tiktok/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {
"name": "my-client",
"version": "1.0.0"
}
}
}'List available tools
Discover all tools exposed by the server for this platform.
curl -X POST https://mcp.keyapi.ai/tiktok/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list",
"params": {}
}'Call a tool
Invoke any tool by name with your API key in the Authorization header.
curl -X POST https://mcp.keyapi.ai/tiktok/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $KEYAPI_TOKEN" \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "search_shop_creator",
"arguments": {
"unique_id": "maccagames",
"region": "US"
}
}
}'Replace tiktok in the URL with any supported platform slug.
Available Tools
Everything your agent needs
229+ tools across 11 platforms.
influencer_list_analyticsSearch and filter TikTok influencers with multi-dimensional metrics including follower trends, engagement rates, and sales performance.
get_shop_creator_detailRetrieve profile and performance data for a TikTok Shop creator, including follower count, sales metrics, and GMV.
get_user_infoGet detailed information about an Instagram user by username or user ID.
get_user_postsGet posts by a user with paginated retrieval.
get_video_informationGet detailed information about a YouTube video, including full metadata and player data.
get_channel_descriptionGet YouTube channel details including subscribers, views, join date, and social links.
get_single_tweet_dataGet single tweet data by tweet ID.
searchSearch across Twitter/X content with Top, Latest, Media, People, and Lists search types.
fetch_single_reddit_post_detailsGet Reddit post details by post ID, optionally including specific comment context.
fetch_reddit_app_popular_feedGet Reddit's most popular posts with sort and time range filters.
get_user_profileGet LinkedIn user profile information.
get_user_postsGet posts by a user with paginated retrieval.
get_user_postsGet posts by a user with paginated retrieval.
get_user_repostsGet the list of reposts by a Threads user.
product_searchSearch Amazon products by keyword or ASIN with category, price, brand, and other filters.
products_by_categoryRetrieve a paginated list of products within an Amazon category.
profile_details_by_urlGet public Facebook profile details by profile URL.
profile_postsGet public Facebook profile posts.
search_usersSearch Pinterest users by keyword.
get_user_informationGet user information for a Pinterest profile.
web_searchPerform a Google web search and retrieve ranked results with titles, snippets, and URLs.
image_searchSearch Google Images with country and language targeting.
More platforms
More platforms coming soon
Why KeyAPI MCP
Built for how agents actually work
One-line integration
Point any MCP-compatible client at our server endpoint. No SDKs to install and no auth flows to wire up.
Works with any AI agent
Claude, GPT models, open-source LLMs, and custom agents can use the same MCP tools.
11 platforms, one connection
TikTok, Instagram, YouTube, Twitter, Threads, Reddit, LinkedIn, Facebook, Google, Pinterest, and Amazon are available through one MCP server family.
Structured JSON responses
Every tool returns clean JSON that can be used immediately downstream.
Compatibility
Works with your existing stack
Any client that supports MCP Streamable HTTP can connect to KeyAPI.
FAQ
Frequently asked questions
What is MCP and why should I use it?
MCP is an open standard that lets AI models discover and call external tools through a consistent interface. KeyAPI MCP lets your agent fetch live social data without custom integration code.
Which AI clients support KeyAPI MCP?
Any client that supports MCP Streamable HTTP works out of the box, including Claude Desktop, Cursor, Windsurf, Cline, Continue, LangChain, AutoGen, and custom agents.
Do I need to install any SDK or library?
No. KeyAPI MCP uses plain HTTP POST requests with JSON-RPC 2.0 payloads. Add the server URL and API key to your MCP client.
How do I authenticate with the MCP server?
Pass your KeyAPI API key as a Bearer token in the Authorization header. You can generate your key from the Dashboard.
Can I connect to multiple platforms at once?
Yes. Each platform has its own endpoint, and you can configure multiple servers in the same MCP client.
What's the difference between MCP and the REST API?
The REST API is for direct programmatic access. MCP exposes the same data as typed tool functions that AI agents can discover and call.