Skip to main content
Glama
ffffhx

CPA Search MCP Server

by ffffhx

CPA Search MCP Server

License: MIT Node.js MCP

English | δΈ­ζ–‡θ―΄ζ˜Ž

A lightweight, zero-dependency Model Context Protocol (MCP) server for real-time web search and webpage content extraction.

It seamlessly reuses your existing local CLIProxyAPI (CPA) instance (http://127.0.0.1:8317) and authorized Google Gemini, xAI Grok, Zhipu GLM accounts to perform structured web research for AI coding agents (Claude Code, Cursor, Codex, Windsurf, Trae).


🌟 Key Features

  • ⚑ Zero Setup & Zero Extra Cost: Directly uses your existing local CPA and Google/Grok/GLM credentials.

  • 🎯 Multi-Engine Support:

    • gemini: Google deep web search and fact verification (Default & Recommended).

    • glm: Zhipu GLM Chinese and technical fact search.

    • grok: xAI real-time web & X/Twitter search.

    • duckduckgo: Free public search engine fallback without any API keys.

    • auto: Intelligent automatic engine routing and failover.

  • 🌐 Webpage Content Extraction: Includes a built-in fetch_webpage tool to fetch and strip raw HTML into clean readable text.

  • πŸ”Œ Universal Compatibility: Works with Claude Code, Cursor, Codex, Windsurf, Trae, and any standard MCP client.

  • πŸš€ Zero Dependencies: Pure Node.js ESM standard library implementation. Instant startup and minimal memory footprint.


πŸ“¦ Quick Start

1. Register with Claude Code

Run the following command in your terminal:

claude mcp add --scope user cpa-search node "C:/Users/aa182/Documents/Codex/2026-08-22/new-chat-2/repositories/cpa-search-mcp/index.mjs"

Verify status:

claude mcp list

2. Configure for Cursor / Windsurf / Trae / Codex

Add the following to your MCP configuration file (e.g. claude_desktop_config.json or Cursor MCP settings):

{
  "mcpServers": {
    "cpa-search": {
      "command": "node",
      "args": [
        "C:/Users/aa182/Documents/Codex/2026-08-22/new-chat-2/repositories/cpa-search-mcp/index.mjs"
      ]
    }
  }
}

πŸ› οΈ Provided Tools

1. cpa_search

Search the web for up-to-date facts, documentation, and technical news.

  • Parameters:

    • query (string, required): The search query or research topic.

    • engine (string, optional): gemini | glm | grok | duckduckgo | auto.

2. fetch_webpage

Fetch and extract clean text from any URL.

  • Parameters:

    • url (string, required): The webpage URL (http/https).


βš™οΈ Environment Variables (Optional)

Variable

Default

Description

CPA_BASE_URL

http://127.0.0.1:8317

Local CPA proxy address

CPA_API_KEY

(Built-in Local Key)

CPA authentication key

CPA_SEARCH_MODEL

gemini-3.7-flash-high

Default AI model for search

HTTPS_PROXY

http://127.0.0.1:7897

Outbound network proxy


πŸ§ͺ Testing

Run the automated end-to-end test suite:

node test.mjs

πŸ“„ License

MIT License Β© 2026 ffffhx

-
license - not tested
Not graded
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.

  • Web search, page extraction and structured commerce, social and business data for AI agents

  • Web search for AI agents β€” one tool across 6 engines, routed to the cheapest + cached.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ffffhx/cpa-search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server