Set up Trawl in your client
Paste this into your agent:
Fetch https://trawlmcp.com/setup.md and follow it to set me up with Trawl.
Or set it up yourself. Server URL: https://mcp.trawlmcp.com
- Claude Code · Claude app · Cursor · ChatGPT · Codex CLI · VS Code · Windsurf · Gemini CLI
- In code: Claude Agent SDK · OpenAI Agents SDK · Vercel AI SDK · LangChain · REST
Claude Code
- Run the line below in a terminal.
- Then run /mcp, pick trawl, choose Authenticate and click Allow in the browser.
claude mcp add --transport http trawl https://mcp.trawlmcp.com
With an API key
claude mcp add --transport http trawl https://mcp.trawlmcp.com --header 'Authorization: Bearer ${TRAWL_API_KEY}' What you see next. Sign in in the browser that opens and click Allow. The trawl tools appear once your client has connected.
From the client’s documentation (source). Run on 3 December 2026 up to the sign-in.
Claude app
- In Claude (web or desktop), go to Customize, then Connectors, select + Add and then Add custom connector.
- Enter the name Trawl and the URL below, then select Continue.
- Under Authentication choose Sign in now, keep Use Claude’s published identity (Recommended), and select Add.
- In a chat, turn Trawl on under +, then Connectors.
- On Team and Enterprise, an Owner adds it under Organization settings, then Connectors; members select Connect.
https://mcp.trawlmcp.com
With an API key
Choose No sign in under Authentication, and under Request headers add a Custom header named Authorization with the value Bearer and your key, typed in Claude’s settings, never in a chat.
Authorization: Bearer <your API key>
What you see next. Sign in in the browser that opens and click Allow. The trawl tools appear once your client has connected.
From the client’s documentation (source), 3 December 2026.
Cursor
- Copy the line below into ~/.cursor/mcp.json, inside "mcpServers".
- Click Add to Cursor, or add this entry to ~/.cursor/mcp.json. Then sign in to trawl in Cursor’s MCP settings.
"trawl": {"url": "https://mcp.trawlmcp.com"} With an API key
"trawl": {"url": "https://mcp.trawlmcp.com", "headers": {"Authorization": "Bearer ${env:TRAWL_API_KEY}"}} What you see next. Sign in in the browser that opens and click Allow. The trawl tools appear once your client has connected.
From the client’s documentation (source 1, source 2), 3 December 2026.
ChatGPT
- In ChatGPT on the web, go to Plugins, select the plus button and then Add custom MCP server.
- Enter the name Trawl and, under Connection, the server URL below.
- Choose OAuth for authentication, review the warning, tick I understand and want to continue, and select Create as a plugin.
- Available on ChatGPT Business, Enterprise, Edu and Pro, on the web.
https://mcp.trawlmcp.com
What you see next. Sign in in the browser that opens and click Allow. The trawl tools appear once your client has connected.
From the client’s documentation (source 1, source 2), 3 December 2026.
Codex CLI
- Run the line below in a terminal.
- Then run codex mcp login trawl and click Allow in the browser (--no-browser prints the link instead).
codex mcp add trawl --url https://mcp.trawlmcp.com
With an API key
codex mcp add trawl --url https://mcp.trawlmcp.com --bearer-token-env-var TRAWL_API_KEY
What you see next. Sign in in the browser that opens and click Allow. The trawl tools appear once your client has connected.
From the client’s documentation (source). Run on 3 December 2026 up to the sign-in link.
VS Code
- Copy the line below into .mcp.json or ~/.copilot/mcp-config.json, inside "mcpServers".
- Run MCP: Add Server, choose HTTP, paste the URL, enter trawl, then choose Global and Copilot Global. Or add this entry next to your other servers. Sign in when VS Code asks.
"trawl": {"type": "http", "url": "https://mcp.trawlmcp.com"} With an API key
"trawl": {"type": "http", "url": "https://mcp.trawlmcp.com", "headers": {"Authorization": "Bearer ${TRAWL_API_KEY}"}} What you see next. Sign in in the browser that opens and click Allow. The trawl tools appear once your client has connected.
From the client’s documentation (source), 3 December 2026.
Windsurf
- Run the line below in a terminal.
- Then run devin mcp login trawl, or sign in under Customize, then MCPs.
devin mcp add -s user trawl https://mcp.trawlmcp.com
With an API key
"trawl": {"url": "https://mcp.trawlmcp.com", "transport": "http", "headers": {"Authorization": "Bearer <your key, typed by you>"}} What you see next. Sign in in the browser that opens and click Allow. The trawl tools appear once your client has connected.
From the client’s documentation (source), 3 December 2026.
Gemini CLI
- Run the line below in a terminal.
- Start Gemini CLI and run
/mcp auth trawl; sign-in opens a browser on the same machine.
gemini mcp add --transport http -s user trawl https://mcp.trawlmcp.com
With an API key
Set TRAWL_API_KEY in your environment; Gemini CLI resolves ${TRAWL_API_KEY} in settings.json when it loads them.
"trawl": {"httpUrl": "https://mcp.trawlmcp.com", "headers": {"Authorization": "Bearer ${TRAWL_API_KEY}"}} What you see next. Sign in in the browser that opens and click Allow. The trawl tools appear once your client has connected.
From the client’s documentation (source 1, source 2), 3 December 2026.
Claude Agent SDK
- Install the SDK:
npm install @anthropic-ai/claude-agent-sdk. - Create an API key on your Trawl account page (it is shown once) and set it as
TRAWL_API_KEYin the environment the code runs in; never put it in the code. - Pass the server in
mcpServersand allow its tools.
import { query } from '@anthropic-ai/claude-agent-sdk';
for await (const message of query({
prompt: 'What does @nasa post on X this week?',
options: {
mcpServers: { trawl: { type: 'http', url: 'https://mcp.trawlmcp.com', headers: { Authorization: `Bearer ${process.env.TRAWL_API_KEY}` } } },
allowedTools: ['mcp__trawl__*'],
},
})) {
if (message.type === 'result' && message.subtype === 'success') console.log(message.result);
} What you see next. The first call reads with your key. A missing or wrong key answers unauthorized and is not charged. The SDK runs no browser sign-in of its own; it can also use a sign-in made in Claude Code on the same machine.
From the client’s documentation (source). Run with a test key on 3 December 2026.
OpenAI Agents SDK
- Install the SDK:
pip install openai-agents. - Create an API key on your Trawl account page (it is shown once) and set it as
TRAWL_API_KEYin the environment the code runs in; never put it in the code. - Open the server with
MCPServerStreamableHttpand give it to the agent.
import asyncio, os
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp
async def main():
params = {"url": "https://mcp.trawlmcp.com", "headers": {"Authorization": f"Bearer {os.environ['TRAWL_API_KEY']}"}}
async with MCPServerStreamableHttp(name="trawl", params=params) as trawl:
agent = Agent(name="Assistant", mcp_servers=[trawl])
result = await Runner.run(agent, "What does @nasa post on X this week?")
print(result.final_output)
asyncio.run(main()) What you see next. The first call reads with your key. A missing or wrong key answers unauthorized and is not charged. For a sign-in instead of a key, the SDK takes an httpx.Auth object in params["auth"].
From the client’s documentation (source). Run with a test key on 3 December 2026.
Vercel AI SDK
- Install the MCP client:
npm install @ai-sdk/mcp. - Create an API key on your Trawl account page (it is shown once) and set it as
TRAWL_API_KEYin the environment the code runs in; never put it in the code. - Create the client, pass its tools to
generateTextorstreamText, and close it when you are done.
import { createMCPClient } from '@ai-sdk/mcp';
const trawl = await createMCPClient({
transport: { type: 'http', url: 'https://mcp.trawlmcp.com', headers: { Authorization: `Bearer ${process.env.TRAWL_API_KEY}` } },
});
const tools = await trawl.tools();
// … generateText({ model, tools, prompt }) …
await trawl.close(); What you see next. The first call reads with your key. A missing or wrong key answers unauthorized and is not charged. For a sign-in instead of a key, the transport takes an authProvider (an OAuth client provider from the MCP TypeScript SDK).
From the client’s documentation (source). Run with a test key on 3 December 2026.
LangChain
- Install LangChain with its MCP support:
pip install "langchain[mcp]". - Open the server with
MCPAdapter. Withauth="oauth"it runs the sign-in in your browser; with a key, setTRAWL_API_KEYand pass it asauthinstead.
from fastmcp.client import Client
from langchain.agents import create_agent
from langchain.mcp import MCPAdapter
async def load():
async with MCPAdapter(Client("https://mcp.trawlmcp.com", auth="oauth")) as trawl:
tools = await trawl.list_tools()
return create_agent("claude-sonnet-5", tools) With an API key
Create an API key on your Trawl account page (it is shown once) and set it as TRAWL_API_KEY in the environment the code runs in; never put it in the code.
Client("https://mcp.trawlmcp.com", auth=os.environ["TRAWL_API_KEY"]) What you see next. Sign in in the browser that opens and click Allow. The trawl tools appear once your client has connected.
From the client’s documentation (source 1, source 2). The API-key path was run on 3 December 2026.
REST
- For agents without MCP: create an API key on your Trawl account page (it is shown once) and set it as
TRAWL_API_KEYin the environment the code runs in; never put it in the code. - The free
accountcall answers with the balance and every price; the read tools arePOST https://mcp.trawlmcp.com/v1/<tool>with the tool’s JSON input. The tool reference has every input.
TRAWL_API_KEY=trawl_live_… curl -s -H "Authorization: Bearer $TRAWL_API_KEY" https://mcp.trawlmcp.com/v1/account
What you see next. The first call reads with your key. A missing or wrong key answers unauthorized and is not charged.
From the client’s documentation (source). Run with a test key on 3 December 2026.
The social web is one tool call away.
Fetch https://trawlmcp.com/setup.md and follow it to set me up with Trawl.