Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 44 additions & 97 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,161 +8,108 @@ A Model Context Protocol (MCP) server that integrates with [Supadata](https://su
- Web scraping, crawling, and URL discovery
- Automatic retries and rate limiting

## Remote MCP (Recommended)
## Installation

Supadata MCP is available as a remote HTTP MCP server, hosted on Cloudflare Workers. This is the recommended way to use Supadata MCP with Claude Code.
Connect your AI assistant to Supadata's MCP server to enable transcript extraction and web scraping capabilities directly in your workflow.

### Install with Claude Code
### Claude Code

```bash
claude mcp add --transport http supadata https://api.supadata.ai/mcp \
--header "x-api-token: sd_YOUR_SUPADATA_API_TOKEN"
--header "x-api-token: YOUR_SUPADATA_API_TOKEN"
```

**Requirements:**
- Claude Code CLI
- Supadata API token
### Claude Desktop

## Local MCP (Legacy / Advanced)

This method runs Supadata MCP locally using Node.js. For most users, the Remote MCP option above is recommended.

### Running with npx

```bash
env SUPADATA_API_KEY=your-api-key npx -y @supadata/mcp
```

### Manual Installation

```bash
npm install -g @supadata/mcp
```

### Running on Cursor

#### Cursor v0.48.6

Add to your Cursor Settings under Features > MCP Servers:
Add to your config file:
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
"mcpServers": {
"@supadata/mcp": {
"command": "npx",
"args": ["-y", "@supadata/mcp"],
"env": {
"SUPADATA_API_KEY": "YOUR_API_KEY"
"supadata": {
"url": "https://api.supadata.ai/mcp",
"headers": {
"x-api-token": "YOUR_SUPADATA_API_TOKEN"
}
}
}
}
```

#### Cursor v0.45.6
### Cursor

Add a new MCP Server with the following details:
- **Name:** `@supadata/mcp`
- **Type:** `command`
- **Command:** `env SUPADATA_API_KEY=your-api-key npx -y @supadata/mcp`

For Windows users:
```bash
cmd /c "set SUPADATA_API_KEY=your-api-key && npx -y @supadata/mcp"
```

### Running on Windsurf

Add this to `./codeium/windsurf/model_config.json`:
Add to `.cursor/mcp.json` in your project root (or global config):

```json
{
"mcpServers": {
"@supadata/mcp": {
"command": "npx",
"args": ["-y", "@supadata/mcp"],
"env": {
"SUPADATA_API_KEY": "YOUR_API_KEY"
"supadata": {
"url": "https://api.supadata.ai/mcp",
"headers": {
"x-api-token": "YOUR_SUPADATA_API_TOKEN"
}
}
}
}
```

### Running on VS Code
### Windsurf

#### User Settings (JSON)

Press `Ctrl + Shift + P` and search for "Preferences: Open User Settings (JSON)", then add:
Add to `~/.codeium/windsurf/mcp_config.json`:

```json
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "apiKey",
"description": "Supadata API Key",
"password": true
}
],
"servers": {
"supadata": {
"command": "npx",
"args": ["-y", "@supadata/mcp"],
"env": {
"SUPADATA_API_KEY": "${input:apiKey}"
}
"mcpServers": {
"supadata": {
"serverUrl": "https://api.supadata.ai/mcp",
"headers": {
"x-api-token": "YOUR_SUPADATA_API_TOKEN"
}
}
}
}
```

#### Workspace Configuration (`.vscode/mcp.json`)
### VS Code + Copilot

Optionally add this file to your workspace to share configuration with others:
Add to your VS Code `settings.json`:

```json
{
"inputs": [
{
"type": "promptString",
"id": "apiKey",
"description": "Supadata API Key",
"password": true
}
],
"servers": {
"supadata": {
"command": "npx",
"args": ["-y", "@supadata/mcp"],
"env": {
"SUPADATA_API_KEY": "${input:apiKey}"
"mcp": {
"servers": {
"supadata": {
"url": "https://api.supadata.ai/mcp",
"headers": {
"x-api-token": "YOUR_SUPADATA_API_TOKEN"
}
}
}
}
}
```

### Usage with Claude Desktop (Local MCP only)
### Cline (VS Code Extension)

Add this to your `claude_desktop_config.json`:
Open Cline settings and add to the MCP Servers configuration:

```json
{
"mcpServers": {
"@supadata/mcp": {
"command": "npx",
"args": ["-y", "@supadata/mcp"],
"env": {
"SUPADATA_API_KEY": "YOUR_API_KEY"
}
"supadata": {
"url": "https://api.supadata.ai/mcp",
"headers": {
"x-api-token": "YOUR_SUPADATA_API_TOKEN"
}
}
}
```

---

Replace `YOUR_SUPADATA_API_TOKEN` with your API token from [supadata.ai](https://supadata.ai).

## Configuration

### Environment Variables
Expand Down
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@supadata/mcp",
"version": "1.0.1",
"version": "1.1.0",
"description": "MCP server for Supadata video & web scraping integration. Features include YouTube, TikTok, Instagram, Twitter, and file video transcription, web scraping, batch processing and structured data extraction.",
"type": "module",
"bin": "./dist/index.js",
Expand Down
2 changes: 0 additions & 2 deletions src/mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {
} from '@modelcontextprotocol/sdk/types.js';
import { z } from 'zod';

type ToolHandler = (args: any, apiKey: string) => Promise<any>;

async function callSupadata(path: string, args: any, apiKey: string, method: 'GET' | 'POST' = 'GET') {
console.error(`[MCP] Calling Supadata: ${method} ${path}, Key length: ${apiKey?.length ?? 0}`);

Expand Down
2 changes: 1 addition & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from '@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js';

export default {
async fetch(request: Request, env: { SUPADATA_API_KEY: string }, ctx: any): Promise<Response> {
async fetch(request: Request, env: { SUPADATA_API_KEY: string }, _ctx: any): Promise<Response> {
try {
let apiKey = request.headers.get('x-api-token');

Expand Down
1 change: 1 addition & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name = "supadata-mcp"
main = "src/worker.ts"
compatibility_date = "2024-12-01"
routes = [{ pattern = "api.supadata.ai/mcp", zone_name = "supadata.ai" }]

[observability]
enabled = true