CoreForge Search

v1.0.1
io.github.ShafiCodes25/coreforge-search Checked 1 day ago Published 23 days ago

CoreForge search: live web search and social search over recent X posts.

Search tools from Creator CoreForge, exposed as a Model Context Protocol (MCP) server over stdio. The tools call the CoreForge x402 API, which is pay-per-call in USDC on Base mainnet (x402 protocol). Two modes: MCP client configuration (Claude Desktop, Cursor, etc.):

Summary extracted from the README.

CoreForge Search — MCP server

Search tools from Creator CoreForge, exposed as a Model Context Protocol (MCP) server over stdio.

The tools call the CoreForge x402 API, which is pay-per-call in USDC on Base mainnet (x402 protocol). Two modes:

  • Quote-only mode (default): no wallet configured. Paid tools return the endpoint's payment requirements — amount, asset, network and payTo address — as a structured result.
  • Auto-pay mode: set X402_PAYER_PRIVATE_KEY to a dedicated, low-balance wallet holding USDC on Base. Each paid tool call then pays automatically via @x402/fetch. Never use a wallet with funds you cannot afford to spend.

Tools

Tool Price What it does
web_search $0.01 Live web search over a neural index (Exa): ranked results with titles, URLs and snippets.
social_search $0.05 Recent public X posts matching a query, with metrics.

Install

npm install
node src/index.js   # serves MCP over stdio

MCP client configuration (Claude Desktop, Cursor, etc.):

{
  "mcpServers": {
    "coreforge-search": {
      "command": "npx",
      "args": ["-y", "coreforge-search-mcp"],
      "env": {
        "X402_BASE_URL": "https://coreforge-memory.onrender.com/x402",
        "X402_PAYER_PRIVATE_KEY": ""
      }
    }
  }
}

(Until the package is published to npm, run it from a clone of this repo with node /path/to/coreforge-search/src/index.js as the command.)

Configuration

Env var Required Description
X402_BASE_URL no Base URL of the CoreForge x402 API. Default: https://coreforge-memory.onrender.com/x402.
X402_PAYER_PRIVATE_KEY no Private key (0x…) of a dedicated low-balance wallet with USDC on Base mainnet (eip155:8453). Enables automatic payment. Empty/unset = quote-only mode.

See .env.example. No secrets are stored in this repository.

Notes

  • Prices are set by the API server and can change; the 402 response always carries the current amount, and quote-only mode shows it before any payment.
  • social_search activates server-side once an X API key is configured on the API; until then it returns a structured 503 social_not_configured body, which the tool passes through unchanged.