Set up Cloud access
Create your account
Sign in with an email code.
Add a passkey whenever you like.
Add some credit
Start from €5 in prepaid credits.
Only successful operations are charged.
Make an API key
Create a key and copy it when it appears.
Store it somewhere secure.
A familiar API.
Compact results.
Send a search request with REST and get back titles, URLs, and snippets. Your agent decides which pages are worth reading.
Set SEARCHBASE_API_KEY in your environment. The examples on this page read your key from there.
curl https://api.searchbase.md/api/v1/search \
-H "Authorization: Bearer $SEARCHBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"independent web search","limit":5}'An open protocol.
Your choice of agent.
Add Searchbase to any MCP client that supports remote HTTP servers and bearer authentication. Pick yours, then add the server to its configuration.
Claude Code reads .mcp.json in your project, OpenCode opencode.json, Codex ~/.codex/config.toml, VS Code .vscode/mcp.json, and Cursor .cursor/mcp.json. VS Code asks for your key when the server first starts.
New MCP clients should use Streamable HTTP at https://mcp.searchbase.md/mcp/http. For clients requiring SSE, use https://mcp.searchbase.md/mcp/sse with the same bearer header on the connection and follow-up requests. Initialization, tool discovery, and ping are free.
{
"mcpServers": {
"searchbase": {
"type": "http",
"url": "https://mcp.searchbase.md/mcp/http",
"headers": {
"Authorization": "Bearer ${SEARCHBASE_API_KEY}"
}
}
}
}{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"searchbase": {
"type": "remote",
"url": "https://mcp.searchbase.md/mcp/http",
"enabled": true,
"oauth": false,
"headers": {
"Authorization": "Bearer {env:SEARCHBASE_API_KEY}"
}
}
}
}[mcp_servers.searchbase]
url = "https://mcp.searchbase.md/mcp/http"
bearer_token_env_var = "SEARCHBASE_API_KEY"{
"inputs": [
{
"type": "promptString",
"id": "searchbase-api-key",
"description": "Searchbase API key",
"password": true
}
],
"servers": {
"searchbase": {
"type": "http",
"url": "https://mcp.searchbase.md/mcp/http",
"headers": {
"Authorization": "Bearer ${input:searchbase-api-key}"
}
}
}
}{
"mcpServers": {
"searchbase": {
"url": "https://mcp.searchbase.md/mcp/http",
"headers": {
"Authorization": "Bearer ${env:SEARCHBASE_API_KEY}"
}
}
}
}Have a URL?
Get the content.
Fetch a web page as Markdown. The MCP equivalent is fetch_url; search uses web_search.
Cloud fetch runs JavaScript on every page. Pages that need a sign-in or interaction, or that block automated access, may return limited content. Fetch respects robots.txt, and a failed fetch returns a code that says why.
curl https://api.searchbase.md/api/v1/fetch \
-H "Authorization: Bearer $SEARCHBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'Need the answer?
Skip the page.
Summarize fetches a page, then a smaller language model hosted in Europe answers your prompt from it, or summarizes the page when you send no prompt. Your agent gets the answer instead of the full page. The MCP equivalent is summarize_url.
A successful summarize costs €0.07, fetch included. Very long pages are cut before the model reads them, and the response says so. Pages can contain text written to mislead AI models, so treat answers as untrusted web content, and use fetch when you need the page itself.
curl https://api.searchbase.md/api/v1/summarize \
-H "Authorization: Bearer $SEARCHBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","prompt":"What is this page for?"}'Every API response includes
X-Request-ID. When you need help, email support@searchbase.md and include it. Keep API keys in authorization headers, never in URLs. Read our privacy approach.