Labsco
searchmcp logo

SearchMCP

โ˜… 2

from searchmcp

Connect any LLM to the internet with the cheapest, most reliable, and developer-friendly search API.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

@searchmcp/client

npm (scoped) License: MIT

Thin TypeScript/JavaScript SDK for the SearchMCP API.
Generated from the OpenAPI spec using typescript-fetch.

Supports REST (/v1/search) endpoint.
Includes full type definitions out of the box.

Client Factory

import {createClient, SearchMCPClient} from "@searchmcp/client";

const client: SearchMCPClient = createClient("smcp_123", "https://api.searchmcp.io");
  • apiKey โ€” required
  • basePath โ€” defaults to https://api.searchmcp.io

Schemas & Types

All request/response schemas and types are generated from the OpenAPI spec and exported:

import {
    SearchRequest,
    SearchResponse,
    SearchStatus,
} from "@searchmcp/client";

See the interactive API Reference for details:


Development

pnpm install
pnpm generate   # re-generate from OpenAPI spec
pnpm build