DEV Community

Tarek Etman for SpecStream

Posted on Edited on

Zero Key Setup for Claude Code and Cursor: Shipping @specstream/mcp 1.0.1 and Domain Filtered Search in SDK 1.5 and 1.7

By Tarek Etman, Founder & CEO, SpecStream

Three releases went out this week. @specstream/mcp 1.0.1 is a Node package, so an MCP client can start SpecStream with npx and nothing else installed. specstream-client 1.7.0 on PyPI and @specstream/sdk 1.5.0 on npm add three domain filters to web search: include_domains, exclude_domains and boost_domains. The same filters are on the search_web MCP tool. This post shows the setup in Claude Code and Cursor, and what each filter is for.

Claude Code and Cursor with no key in any file

The hosted server at https://api.specstream.ai/mcp signs you in with OAuth. You add the address, the client opens a browser the first time a tool runs, and no key is pasted anywhere.

Claude Code:

claude mcp add --transport http specstream "https://api.specstream.ai/mcp?tools=search,extract,links,dora,lists"
Enter fullscreen mode Exit fullscreen mode

Then run /mcp inside Claude Code, pick specstream and sign in in the browser tab it opens.

Cursor, in ~/.cursor/mcp.json or .cursor/mcp.json:

{
  "mcpServers": {
    "specstream": {
      "url": "https://api.specstream.ai/mcp?tools=search,extract,links,dora,lists"
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Cursor asks you to log in to the server the first time, in the browser. ?tools= keeps the list to what you use, which keeps the context the agent spends on tool definitions small. Leave it off to get every tool.

Clients that only run local servers: npx

Some clients, and some company setups, only run local stdio servers. @specstream/mcp 1.0.1 is a single Node script with no dependencies that forwards to the hosted server:

{
  "mcpServers": {
    "specstream": {
      "command": "npx",
      "args": ["-y", "@specstream/mcp@1.0.1"],
      "env": { "SPECSTREAM_API_KEY": "your_api_key_here" }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

This path takes a key. Without one the server still answers initialize and tools/list from the tools it ships with, so a registry or a reviewer can read all 143 tools, and a tool call explains where to get a key. Earlier the local route was the Python bridge specstream-mcp-stdio, which still works; the npm package means a Node machine needs nothing new.

Both configs are in one gist: Claude Code and Cursor MCP config.

Domain filters, and when to use each

Each filter takes up to 20 entries. An entry can be a domain (fda.gov), a subdomain (news.ycombinator.com) or an ending (.gov, .no).

include_domains returns results from those sites and no others. Use it when the answer only counts from a primary source: a regulator, a standards body, a vendor's own docs.

exclude_domains drops sites from the results. Use it for the aggregators and content farms you never want an agent to cite.

boost_domains puts those sites first and keeps the rest after them. It also asks for those sites by name, so their pages come up even where the plain query would not have found them. Use it when your own docs or an official source should lead but the open web is still useful. It works with the fast and default search, not with news or images, and not in the same call as include_domains.

Python, specstream-client 1.7.0:

import os
from specstream_client import Client

client = Client(os.environ["SPECSTREAM_API_KEY"])

fda = client.web_search(
    q="510(k) clearance continuous glucose monitor 2026",
    speed="fast",
    include_domains=["fda.gov", "accessdata.fda.gov"],
)

clean = client.web_search(
    q="best open source vector database benchmarks",
    speed="fast",
    exclude_domains=["medium.com", "pinterest.com", "quora.com"],
)

ours_first = client.web_search(
    q="postgres logical replication slot lag",
    boost_domains=["postgresql.org", "github.com"],
)

for src in fda["sources"][:5]:
    print(src["url"], src["title"])
Enter fullscreen mode Exit fullscreen mode

TypeScript, @specstream/sdk 1.5.0:

import { Client } from "@specstream/sdk";

const client = new Client({ apiKey: process.env.SPECSTREAM_API_KEY! });

const page = await client.webSearch({
  q: "state data breach notification law changes 2026",
  speed: "fast",
  include_domains: [".gov"],
  exclude_domains: ["reddit.com"],
});

for (const s of page.sources ?? []) console.log(s.url, s.title);
Enter fullscreen mode Exit fullscreen mode

Over plain HTTP the same filters are query parameters, as a list or one comma separated value:

curl -s "https://api.specstream.ai/v1/web-search?q=nis2+supplier+requirements&speed=fast&include_domains=europa.eu,enisa.europa.eu" \
  -H "Authorization: Bearer $SPECSTREAM_API_KEY" | jq '.data.sources[] | {url, title}'
Enter fullscreen mode Exit fullscreen mode

In Claude Code or Cursor you do not write any of this. Ask "search only fda.gov for 510(k) clearances of insulin pumps this year" and the agent sets include_domains on search_web itself.

A runnable Python file with four filter patterns: domain filtered web search with SDK 1.7.

What it costs

Price
Fast search (speed="fast"), up to 10 results $1 per 1,000
Default search, which also reads the answer from the pages $5 per 1,000
Extract, any page as Markdown $0.80 per 1,000 pages
New account $2 of credit, no card
Starter $49 a month
Growth $199 a month
Scale $499 a month
Enterprise from $2,500 a month

The filters cost nothing extra. Each monthly plan's fee comes back as API credit, and one time search packs that never expire are on specstream.ai/deals.

If you are moving from another search API

Exa and Tavily users will know these filters from their current API. The drop in routes answer in each API's own response shape, so the move is a base address:

For GTM teams that want the same engine inside the tools they already use, the headless GTM data engine page shows how to call it from the tools you already run, and the Clay integration has four recipes to paste into an HTTP API column.

Links

Top comments (0)