# okdata

The okdata MCP server for Claude Code connects an agent to public data from social platforms. It can locate endpoints and fetch posts, account details, comments, and trending lists.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: okdataapi
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/okdataapi/okdata
- Updated: 2026-11-15
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/okdata

## What it does

okdata gives an agent tools to search for an endpoint, inspect its parameters and price, run a request, and retrieve the rest of a long response. The API covers public social data such as posts, accounts, comments, trending lists, transcripts, and ads.

Paid requests need an `OKDATA_API_KEY` and are billed per call or returned item; failed calls cost nothing. The remote MCP endpoint uses HTTP. Clients that require a local process can run the `@okdata/mcp` package with `npx`.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://api.okdata.online/mcp`
- Environment variables: `OKDATA_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://api.okdata.online/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env OKDATA_API_KEY=<OKDATA_API_KEY> --transport stdio okdata -- npx -y @okdata/mcp
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add okdata --url https://api.okdata.online/mcp
```

2. **Platform CLI**
```bash
codex mcp add okdata --env OKDATA_API_KEY=<OKDATA_API_KEY> -- npx -y @okdata/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "okdata": {
            "url": "https://api.okdata.online/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "okdata": {
            "command": "npx",
            "args": [
                "-y",
                "@okdata/mcp"
            ],
            "env": {
                "OKDATA_API_KEY": "<OKDATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "okdata": {
            "type": "http",
            "url": "https://api.okdata.online/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "okdata": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@okdata/mcp"
            ],
            "env": {
                "OKDATA_API_KEY": "<OKDATA_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http okdata https://api.okdata.online/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e OKDATA_API_KEY=<OKDATA_API_KEY> okdata npx -y @okdata/mcp
```
Replace <…> with your own values

## When to use it
- find an endpoint for searching social posts
- retrieve comments and account details
- check an endpoint's price before calling it
- fetch the remainder of a long response

## Example prompts
- Find an endpoint for searching TikTok videos and explain its parameters.
- Get comments for this post on X.
- Check my balance and find YouTube trending data.

## Similar
- [InsightSocial](https://affpapa.org/en/nevibecode/mcp/insightsocial.md) — MCP server
- [framefetch](https://affpapa.org/en/nevibecode/mcp/framefetch.md) — MCP server · 4719 installs
- [Upload-Post](https://affpapa.org/en/nevibecode/mcp/upload-post.md) — MCP server · ★ 21 repo stars
- [Mysocial](https://affpapa.org/en/nevibecode/mcp/mysocial.md) — MCP server
- [CreatorDB](https://affpapa.org/en/nevibecode/mcp/creatordb.md) — MCP server · ★ 2 repo stars
- [Hyperaware: What's Trending Now](https://affpapa.org/en/nevibecode/mcp/hyperaware-whats-trending-now.md) — MCP server

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
