
SearchMCP
โ 2from searchmcp
Connect any LLM to the internet with the cheapest, most reliable, and developer-friendly search API.
๐ฅ๐ฅ๐ฅโ VerifiedFreeQuick setup
@searchmcp/client
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โ requiredbasePathโ defaults tohttps://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 buildPre-Installation
Checkout
- ๐ SearchMCP Docs
- ๐ SearchMCP API Reference
Installation
npm install @searchmcp/client
# or
pnpm add @searchmcp/client
# or
yarn add @searchmcp/clientRequires Node.js 18+ (native fetch).
Usage
import {createClient} from "@searchmcp/client";
const client = createClient(process.env.SEARCHMCP_API_KEY);
// Simple web search
const res = await client.search({
query: "latest GPU deals",
country: "US",
numberOfResults: 5,
});
console.log(res.status); // "SUCCESS"
console.log(res.results); // array of resultsNo common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MITโ you can use, modify, and redistribute it under that license's terms.
License
MIT โ see LICENSE