# Connect a client

> Copy-paste setups for Claude Code, Claude Desktop, Cursor, VS Code and any MCP client.

Source: https://www.podcastlookup.com/documentation/mcp/clients

You need an API key from your [account page](https://www.podcastlookup.com/account/api-keys). Replace `pl_…` below with it.

**Claude Code**

Run once in your terminal:

```bash
claude mcp add --transport http podcast-lookup https://www.podcastlookup.com/api/mcp \
  --header "Authorization: Bearer pl_…"
```

Add `--scope user` to use it in every project, or `--scope project` to share it with your team through `.mcp.json` (then keep the key in an environment variable, not in the file). Check the connection with `/mcp` inside Claude Code.

**Claude Desktop**

Open **Settings → Developer → Edit Config** and add the server to `claude_desktop_config.json`. Claude Desktop reaches remote servers through the `mcp-remote` bridge:

```json title="claude_desktop_config.json"
{
  "mcpServers": {
    "podcast-lookup": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://www.podcastlookup.com/api/mcp",
        "--header",
        "Authorization: Bearer pl_…"
      ]
    }
  }
}
```

Restart Claude Desktop. The tools appear under the tools icon in the chat box.

**Cursor**

Add to `~/.cursor/mcp.json` (every project) or `.cursor/mcp.json` (one project):

```json title="mcp.json"
{
  "mcpServers": {
    "podcast-lookup": {
      "url": "https://www.podcastlookup.com/api/mcp",
      "headers": { "Authorization": "Bearer pl_…" }
    }
  }
}
```

Then enable **podcast-lookup** in **Settings → MCP**.

**VS Code**

Add to `.vscode/mcp.json`. VS Code prompts for the key once and stores it securely:

```json title=".vscode/mcp.json"
{
  "inputs": [
    { "type": "promptString", "id": "podcast-lookup-key", "description": "Podcast Lookup API key", "password": true }
  ],
  "servers": {
    "podcast-lookup": {
      "type": "http",
      "url": "https://www.podcastlookup.com/api/mcp",
      "headers": { "Authorization": "Bearer ${input:podcast-lookup-key}" }
    }
  }
}
```

Use it from Copilot Chat in agent mode.

**Windsurf**

Add to `~/.codeium/windsurf/mcp_config.json`:

```json title="mcp_config.json"
{
  "mcpServers": {
    "podcast-lookup": {
      "serverUrl": "https://www.podcastlookup.com/api/mcp",
      "headers": { "Authorization": "Bearer pl_…" }
    }
  }
}
```

**Other**

Any client that supports **Streamable HTTP** and custom headers works:

```json title="mcp.json"
{
  "mcpServers": {
    "podcast-lookup": {
      "type": "http",
      "url": "https://www.podcastlookup.com/api/mcp",
      "headers": { "Authorization": "Bearer pl_…" }
    }
  }
}
```

For clients that only run local (stdio) servers, bridge with `npx -y mcp-remote https://www.podcastlookup.com/api/mcp --header "Authorization: Bearer pl_…"`.

## From your own code

With the official TypeScript SDK:

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"

const client = new Client({ name: "my-app", version: "1.0.0" })
await client.connect(
  new StreamableHTTPClientTransport(new URL("https://www.podcastlookup.com/api/mcp"), {
    requestInit: { headers: { Authorization: `Bearer ${process.env.PODCAST_LOOKUP_API_KEY}` } },
  }),
)

const { tools } = await client.listTools() // free
const result = await client.callTool({ name: "search_podcasts", arguments: { query: "history", languages: ["en"] } })
console.log(result.structuredContent)
```

## Troubleshooting

### The client says 401 or fails to connect

The key is missing, mistyped or revoked. Check that the header is exactly `Authorization: Bearer pl_…`, with no quotes around the key, and that the key still exists on your account page.

### Tools are listed but every call fails with credits_exhausted

This month's credits are spent. Wait for the reset on the 1st (UTC) or upgrade on the [pricing page](https://www.podcastlookup.com/pricing.md).

### Calls fail with rate_limited

The agent made more calls in a minute than your plan allows. Ask it to slow down or work on a narrower question; Pro allows 600 calls a minute.

### My client doesn't support remote servers

Use the `mcp-remote` bridge shown in the Claude Desktop and Other tabs: it runs locally over stdio and forwards to the remote endpoint.