Repository navigation
Social media data in Gemini CLI: adding LurkAPI as a remote MCP server #30120
mesmerlord
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I built LurkAPI, a social media data API whose endpoints are also a remote MCP server. Here's how to add it to Gemini CLI as a remote MCP server, so Gemini can read public TikTok, Instagram, YouTube, Reddit, X and ad library data while it works.
Add it
Or add it to
~/.gemini/settings.jsonby hand:{ "mcpServers": { "lurkapi": { "httpUrl": "https://api.lurkapi.com/mcp" } } }The server answers 401 until you sign in, so Gemini CLI discovers its OAuth and opens the browser (Google or an email code);
/mcp auth lurkapistarts it by hand. New accounts get 100 free credits, no card.Rather use an API key (from the dashboard)? Settings strings expand environment variables:
{ "mcpServers": { "lurkapi": { "httpUrl": "https://api.lurkapi.com/mcp", "headers": { "x-api-key": "$LURKAPI_API_KEY" } } } }There's one tool per endpoint (89).
"includeTools": ["tiktok_profile", "tiktok_profile_videos", "youtube_transcript"]keeps the list short, orhttps://api.lurkapi.com/mcp?platforms=tiktok,youtubelists only those platforms.Try it
Gemini calls
tiktok_profilewithhandle="nike", which returns (trimmed):{ "user": { "uniqueId": "nike", "nickname": "Nike", "verified": true, "signature": "Just Do It." }, "stats": { "followerCount": 9253124, "followingCount": 91, "heartCount": 49280939, "videoCount": 1089 } }and then
tiktok_profile_videosfor the latest videos, with captions, view and like counts.Most calls cost 1 credit; packs start at $9 for 10,000. It reads public data only and can't post or message anyone. Docs: https://lurkapi.com/docs
Questions and bug reports welcome here.
All reactions