Web Search API + MCP Server · For Developers Building AI Agents

Web Search API & MCP for AI Agents

SearchPipe gives developers building AI agents access to real-time web search and structured web content through a simple API or MCP server. One call runs multi-engine retrieval, full-text extraction and LLM reranking.

Basic search
1 credit
Advanced search
2 credits
Free credits on signup
1,000
Integration time
1–3 minutes
Failed calls
auto-refunded
Get API Key Read Documentation Connect with MCP

Sign-in required — you'll be guided to register or log in first, then returned to your search.

Via MCP — any MCP-compatible agent

# One URL puts live web search into any MCP agent
claude mcp add --transport http searchpipe \
  "https://searchpipe.tech/mcp/?api_key=sp-YOUR_API_KEY"

Via REST API — any language your agent speaks

curl -X POST https://searchpipe.tech/search \
  -H "Authorization: Bearer sp-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"FastAPI tutorial","max_results":5,"include_answer":true}'
import httpx

resp = httpx.post(
    "https://searchpipe.tech/search",
    headers={"Authorization": "Bearer sp-YOUR_KEY"},
    json={"query": "FastAPI tutorial", "max_results": 5, "include_answer": True},
    timeout=60,
)
data = resp.json()
print(data["answer"])
for r in data["results"]:
    print(r["score"], r["title"], r["url"])
const resp = await fetch("https://searchpipe.tech/search", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sp-YOUR_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ query: "FastAPI tutorial", max_results: 5, include_answer: true }),
});
const data = await resp.json();
console.log(data.answer);
for (const r of data.results) console.log(r.score, r.title, r.url);
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"time"
)

func main() {
	payload, _ := json.Marshal(map[string]any{
		"query":          "FastAPI tutorial",
		"max_results":    5,
		"include_answer": true,
	})
	req, _ := http.NewRequest("POST", "https://searchpipe.tech/search", bytes.NewReader(payload))
	req.Header.Set("Authorization", "Bearer sp-YOUR_KEY")
	req.Header.Set("Content-Type", "application/json")
	client := &http.Client{Timeout: 60 * time.Second}
	resp, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
import java.net.URI;
import java.net.http.*;
import java.time.Duration;

public class SearchPipeDemo {
    public static void main(String[] args) throws Exception {
        String json = """
            {"query":"FastAPI tutorial","max_results":5,"include_answer":true}
            """;
        HttpClient client = HttpClient.newBuilder()
            .version(HttpClient.Version.HTTP_1_1)
            .connectTimeout(Duration.ofSeconds(10))
            .build();
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://searchpipe.tech/search"))
            .timeout(Duration.ofSeconds(60))
            .header("Authorization", "Bearer sp-YOUR_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(json))
            .build();
        HttpResponse<String> resp =
            client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(resp.body());
    }
}
using System.Net.Http.Json;

using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
    new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", "sp-YOUR_KEY");

var payload = new
{
    query = "FastAPI tutorial",
    max_results = 5,
    include_answer = true,
};

HttpResponseMessage resp = await client.PostAsJsonAsync("https://searchpipe.tech/search", payload);
resp.EnsureSuccessStatusCode();
Console.WriteLine(await resp.Content.ReadAsStringAsync());

What is SearchPipe?

SearchPipe is a web search API and MCP server for developers building AI agents. It provides web search and web content retrieval through a single interface, so AI applications can access information from the live web.

Primary category: Web Search API
Also: Web Search Infrastructure, MCP Server

How SearchPipe Works

Your agent sends a single query; we run search, extraction, scoring and summarization in the background, and return clean results ranked by relevance.

01

Search

Search the web for the requested information across multiple engines.

02

Retrieve

Retrieve relevant web pages and extract clean article content.

03

Rerank

Rank results based on relevance using LLM scoring.

04

Return

Return structured results to the application or AI agent.

Web retrieval infrastructure for AI agents

Multi-engine retrieval

Aggregated results from multiple search engines on self-hosted infrastructure.

Full-text extraction

Fetches top-N pages and extracts the article body, stripping navigation and ads.

LLM relevance reranking

Every result scored 0–1 against the query intent and sorted by relevance.

AI answers with citations

Optional summary with citation markers, flagged ai_generated=true.

Remote MCP server

streamable-http MCP endpoint; tool name searchpipe_search, key in the URL.

REST API

POST /search callable from any language, framework or backend service.

Chinese web coverage

Retrieves and cleans Chinese-language pages alongside English ones.

Automatic refunds

Failed calls (502 upstream failure, 400 output violation) are refunded idempotently.

Rate limiting

Redis sliding window: 100 requests per minute with a burst of 20 by default.

Result caching

Identical query and parameters served from cache for 300 seconds by default.

Built for developers building AI agents

SearchPipe is designed for developers who need to give AI agents and AI applications access to web search and web content retrieval.

Research Agents

Search the web for current information and gather relevant sources. Agents can autonomously explore topics, synthesize findings, and cite live URLs without hallucinating outdated facts.

Coding Agents

Give coding agents access to documentation, repositories and current technical information. Let Claude Code, Cursor or your custom dev agent look up APIs, libraries and solutions on the fly.

RAG Applications

Retrieve fresh web content to augment LLM context. Replace stale vector stores with real-time extraction and reranking, ensuring your generation is always grounded in the latest information.

AI Applications

Add web search capabilities without building your own search infrastructure. Integrate via REST API or MCP in minutes, with automatic refunds, rate limiting and structured JSON responses.

Two first-class ways to connect

MCP and the REST API are equal first-class paths to the same pipeline — same parameters, same results, same billing. Pick whichever fits your stack; switching later costs nothing.

MCP Server

Use the MCP server when your AI client or agent framework supports the Model Context Protocol. A remote streamable-http endpoint with the API key embedded in the URL: paste https://searchpipe.tech/mcp/?api_key=sp-YOUR_API_KEY into Claude Code, Cursor or your own MCP host and it just works. Tool name: searchpipe_search.

MCP setup guide · Per-agent config snippets

Web Search API

Use the REST API when integrating SearchPipe directly into your application or agent infrastructure. One POST /search endpoint, callable from any language, framework or backend: authenticate with Authorization: Bearer sp-YOUR_API_KEY and get structured, scored JSON your code consumes directly.

API documentation · Search API overview

Self-serve for agents

Send the link to your AI agent and it will complete the whole MCP setup by itself: /agent-setup/SKILL.md.

Production-grade guardrails

Input/output content moderation, per-call billing with automatic refunds on failure, and rate limiting — safe even for high-frequency agent calls.

Identical behavior on both paths

Cache, moderation, refunds and result shape are shared — an agent connected via MCP and a service calling REST get byte-identical results for the same query.

Web Search API Example

This request searches the web and returns structured results that can be consumed by an AI application.

{
  "query": "How to deploy FastAPI",
  "answer": "FastAPI is typically served with uvicorn,
    often behind gunicorn…[0][2][3]",
  "results": [
    {
      "url": "https://…",
      "title": "…",
      "content": "Summary snippet…",
      "score": 0.98
    }
  ]
}

One call, ready to use

No more gluing together search APIs, crawlers, extractors and rerankers — hand the whole data pipeline to us.

First-class REST API

Building your own agent framework or backend service? A single POST /search endpoint runs the same pipeline with identical parameters — no MCP required.

Parameter reference, response fields, error codes and multi-language examples: API documentation.

MCP Example

Connect an MCP-compatible AI client to SearchPipe to give the agent access to web search.

# Add SearchPipe to any MCP-compatible agent
claude mcp add --transport http searchpipe \
  "https://searchpipe.tech/mcp/?api_key=sp-YOUR_API_KEY"

# The agent can now call searchpipe_search
# with query, max_results, include_answer and search_depth parameters

Learn more about SearchPipe MCP · Per-agent configuration guides

SearchPipe and Other Web Search APIs

SearchPipe is one approach to providing web retrieval for AI agents. Developers may also evaluate other web search APIs depending on their retrieval requirements.

See a detailed side-by-side comparison of pricing, features and coverage: SearchPipe vs Tavily vs Exa vs Brave.

What SearchPipe is and is not

SearchPipe is web search infrastructure for AI agents and applications.

SearchPipe is not a consumer search engine. It provides search and retrieval capabilities that developers can integrate into their own AI applications and agents.

Simple, transparent credit pricing

1 credit = 1 request. Free credits on signup — get your agent running before you pay.

Limited-time 50% OFF $0.005 $0.01 / credit

Free tier

$0
  • 1,000 free credits on signup
  • Full API & MCP capabilities
  • Great for integration testing
Sign up now

Monthly plans

Subscription credits are valid for 30 days from grant. Subscriptions are managed by the platform and renew automatically; upgrades are supported anytime.

Starter

50% OFF
$4.99 $9.99/mo
  • 1,200 credits / month
  • Unused credits expire at period end
Subscribe

Max

50% OFF
$19.99 $39.99/mo
  • 10,000 credits / month
  • Unused credits expire at period end
Subscribe

Subscription rules: renewed credits take effect from the next billing period (they don't stack into the current one); upgrading charges the full current price of the new plan — new-plan credits land immediately with a fresh 30-day window, and unused credits from the old plan are extended to the new period end; downgrades are not supported. Credit validity and refund policies follow the Terms of Service. Full pricing and rules: Pricing. Comparing options? See how SearchPipe compares with Tavily, Exa and Brave.

FAQ

Frequent questions on integration, billing and result usage; the full list lives on the FAQ page.

What is SearchPipe?

SearchPipe is a web search API and MCP server for developers building AI agents. A single call runs multi-engine retrieval, full-text fetching, LLM reranking and optional summarization, returning structured results with relevance scores that agents can consume directly.

How is SearchPipe different from calling a search engine directly?

SearchPipe returns cleaned page content, relevance scores and optional answers — not raw search-result HTML that you have to parse. Agents can consume the response directly, and failed requests are automatically refunded.

How do I add SearchPipe to my AI agent?

Two first-class paths, equally supported — pick whichever fits your stack: connect via MCP (any MCP-compatible agent or client — Claude Code, Cursor and more), or call the REST API POST /search directly from your custom agent in any language. Both run the same pipeline with identical parameters, results and billing.

Can SearchPipe search the Chinese web?

Yes. SearchPipe aggregates multiple search engines and can retrieve and clean Chinese-language pages, making it a practical choice when your agents need coverage of both English and Chinese web content.

How does pricing work?

Credits: $0.005 = 1 credit (limited-time 50% OFF; standard rate $0.01). A basic search costs 1 credit and an advanced search costs 2 credits. New accounts get 1,000 free credits per month. Recharged credits never expire; subscription credits are valid for 30 days.

How long does integration take?

Copy the MCP link from the dashboard into your client config — typically 1–3 minutes. Agents can also read /agent-setup/SKILL.md to configure themselves automatically.

Does SearchPipe provide a web search API?

Yes. SearchPipe provides a REST API (POST /search) that returns structured JSON results with relevance scores, extracted page content and optional AI-generated answers. Authenticate with an sp- prefixed API key.

Does SearchPipe support MCP?

Yes. SearchPipe runs a remote MCP server (streamable-http) at /mcp/. Any MCP-compatible agent or client can connect by adding the URL with an API key. Tool name: searchpipe_search.

How is SearchPipe different from a consumer search engine?

SearchPipe is not a consumer search engine. It provides search and retrieval capabilities that developers can integrate into their own AI applications and agents.

What does SearchPipe return?

Structured JSON with query, results (each containing url, title, content, score and optional raw_content), an optional answer with citation markers, and an ai_generated flag. The response shape is identical whether you call the REST API or the MCP server.

Put the live web inside your agent, today

Free credits on signup — connect via MCP or call the REST API in minutes. Same pipeline, same billing, your choice.