# Search1API

An MCP server that gives your coding agent web search, news, page retrieval and trending topics through Search1API. Useful when the agent should look things up itself.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 173
- Author: superagents-lab
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/superagents-lab/search1api-mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/search1api

## What it does

The server exposes `search`, `news`, `ask` and `crawl`. Search hits come back with `id`, `title` and `url` fields you can cite, and you fetch a full page by passing one of those URLs to `crawl`. Pick the backend with `search_service` — google by default, with bing, duckduckgo, github, arxiv, youtube, reddit and others available. Results can be limited to or excluded from specific sites.

Two ways to connect. Remote: point the client at `https://mcp.search1api.com/mcp`, nothing to install; OAuth-capable clients sign in through the browser, others send a key in a header or, in the older form, in the URL. Local: run `npx -y search1api-mcp` on Node.js 20 or newer and set `SEARCH1API_KEY` in the environment.

Every request needs a credential, including `initialize` and `tools/list` — without one the server answers with the OAuth challenge. A key in a URL query string can leak into logs and shell history, so the Authorization header is the safer choice. Self-hosted HTTP behind a proxy needs the comma-separated `MCP_ALLOWED_HOSTS`, and browser clients that send an `Origin` header also need `MCP_ALLOWED_ORIGINS`, or their requests get rejected.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.search1api.com/mcp`
- Environment variables: `SEARCH1API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http search1api https://mcp.search1api.com/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env SEARCH1API_KEY=<SEARCH1API_KEY> --transport stdio search1api -- npx -y search1api-mcp
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add search1api --url https://mcp.search1api.com/mcp
```

2. **Platform CLI**
```bash
codex mcp add search1api --env SEARCH1API_KEY=<SEARCH1API_KEY> -- npx -y search1api-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "search1api": {
            "url": "https://mcp.search1api.com/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "search1api": {
            "command": "npx",
            "args": [
                "-y",
                "search1api-mcp"
            ],
            "env": {
                "SEARCH1API_KEY": "<SEARCH1API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "search1api": {
            "type": "http",
            "url": "https://mcp.search1api.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "search1api": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "search1api-mcp"
            ],
            "env": {
                "SEARCH1API_KEY": "<SEARCH1API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http search1api https://mcp.search1api.com/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e SEARCH1API_KEY=<SEARCH1API_KEY> search1api npx -y search1api-mcp
```
Replace <…> with your own values

## When to use it
- find current web sources and return them with titles and links
- pull the full text of a page the agent found
- collect news on a topic for a given period
- search GitHub or Reddit discussions without switching tools
- render source cards in the client through `render_results`

## Example prompts
- Search the web for recent posts about pnpm monorepo setup and list the links
- Fetch the full text of this page and summarise the main points
- What was written about Rust in the last week? Give me the sources

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
