Skip to main content
Glama

Serpex MCP

npm version License: MIT

A Model Context Protocol (MCP) server that gives AI agents web search and page extraction through Serpex. Serpex is a web search API and extract API for AI agents. Search returns ranked web results, optionally with page content as markdown; Extract turns known URLs into clean markdown. Serpex runs its own search engine.

Features

✅ Web Search: Ranked web results, nothing to configure
✅ Page Content: Optionally fetch the top results' pages as markdown in the same call
✅ Structured Results: Clean, consistent JSON responses
✅ Easy Integration: Works with Claude Desktop, Jan AI, and any MCP-compatible client

Related MCP server: Serper Search and Scrape MCP Server

Installation

No installation needed! Use npx to run directly:

npx serpex-mcp

Global Installation

npm install -g serpex-mcp

Local Installation

npm install serpex-mcp

Usage

With Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "serpex": {
      "command": "npx",
      "args": ["-y", "serpex-mcp"],
      "env": {
        "SERPEX_API_KEY": "your-api-key-here"
      }
    }
  }
}

With Other MCP Clients

Any MCP-compatible client can use this server. Configure it with:

  • Command: npx

  • Arguments: -y serpex-mcp

  • Environment: SERPEX_API_KEY=your-key

Standalone

export SERPEX_API_KEY="your-api-key-here"
serpex-mcp

Available Tools

Search the web with Serpex. Optionally fetches full page content (markdown) for the top results inline with the search — best-effort, so check each result for content vs content_error.

Parameters:

  • q (required): Search query string (max 500 characters)

  • include_content (optional, boolean): Also fetch full page content (markdown) for the top results. Best-effort — pages that can't be extracted return content_error instead. Default: false.

  • content_results (optional, 5 | 10): Number of top results to fetch content for, when include_content is true. Must be exactly 5 or 10. Default: 5.

Example:

{
  "q": "artificial intelligence trends 2025",
  "include_content": true,
  "content_results": 5
}

Response (JSON, as tool output text) includes status (success or no_results), total_results, credits_used, a message when nothing was found, content_requested / content_delivered counts and, per result, content on success or content_error on failure — both keys are omitted when content wasn't requested.

serpex_extract

Extract the content of known web pages as clean markdown (or HTML).

Parameters:

  • urls (required): 1 to 10 absolute http(s) URLs.

  • format (optional, markdown | html): Output format. Default: markdown.

Example:

{
  "urls": ["https://example.com/pricing"],
  "format": "markdown"
}

Response (JSON, as tool output text) includes successful, failed, credits_used and, per URL, success plus markdown / html, or error when the page could not be extracted. Extract calls can take up to about a minute, so the server waits up to 100 s.

Getting Your API Key

  1. Visit serpex.dev

  2. Sign up for a free account

  3. Get your API key from the dashboard

  4. Use it in the SERPEX_API_KEY environment variable

API Information

  • Base URL: https://api.serpex.dev

  • Documentation: https://serpex.dev/docs

  • Pricing: Free tier available, affordable paid plans

Development

Build from Source

git clone https://github.com/divyeshradadiya/serpex-mcp.git
cd serpex-mcp
pnpm install
pnpm build

Run Tests

export SERPEX_API_KEY="your-key-here"
pnpm test

License

MIT

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool update
    • First observedserpex_search

TDQS

B3.3/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool has a clear and distinct purpose: searching the web using the Serpex API.

Naming Consistency5/5

Since there is only one tool, naming consistency is inherently perfect. The tool name 'serpex_search' follows a clear and logical pattern, combining the server name with the action.

Tool Count2/5

A single tool is too few for a web search server, as it lacks essential operations like filtering results, handling pagination, or accessing specific search engines individually. This minimal set limits functionality and may cause agent failures in complex tasks.

Completeness2/5

The tool surface is severely incomplete for a web search domain. While the search tool exists, there are significant gaps such as no ability to refine searches, manage result formats, or perform advanced queries, which are common in search APIs.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables web search across multiple search engines (DuckDuckGo, Bing, Startpage) with parallel execution and result deduplication. Also provides web page content extraction capabilities.
    2
    -
  • A
    license
    A
    quality
    D
    maintenance
    Enables advanced web search across multiple search engines (Brave, DuckDuckGo, Google, Bing, Yandex) with intelligent backend selection, full content extraction, and advanced filtering by time, language, geography, and content type.
    3
    MIT
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables searching across multiple search engines (Google, Bing, YouTube, DuckDuckGo, etc.) and retrieving parsed search results via SerpApi integration.
    -