CoreForge Media

v1.0.1
io.github.ShafiCodes25/coreforge-media Checked 4 days ago Published 26 days ago

CoreForge media tools: speech-to-text, document parsing, translation, embeddings.

Media and local-model tools from Creator CoreForge, exposed as a Model Context Protocol (MCP) server over stdio. The underlying model services (Whisper, Granite-Docling, BGE, MADLAD-400, Qwen3-8B, FLUX.1-schnell) run on CoreForge's own infrastructure — no third-party AI keys are involved, and documents/audio never leave CoreForge infrastructure. 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 Media — MCP server

Media and local-model tools from Creator CoreForge, exposed as a Model Context Protocol (MCP) server over stdio. The underlying model services (Whisper, Granite-Docling, BGE, MADLAD-400, Qwen3-8B, FLUX.1-schnell) run on CoreForge's own infrastructure — no third-party AI keys are involved, and documents/audio never leave CoreForge infrastructure.

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
speech_to_text $0.40 Transcribe one audio file (≤15 min) — faster-whisper, with segments and detected language.
document_parse $0.10 Parse a PDF/image document (≤25 MB) to clean markdown + structured JSON (Granite-Docling).
page_to_markdown $0.002 Fetch a web page and return clean, model-ready markdown.
translate_text $0.01 Translate up to 5,000 chars (MADLAD-400).
embeddings $0.002 768-dim BGE embeddings for one text or a batch (≤256).
rerank $0.005 BGE cross-encoder reranking of up to 100 documents against a query.
chat_completion $0.002 OpenAI-compatible chat completion (local Qwen3-8B, server-side caps).
image_generate $0.05 One draft/concept image from a prompt (FLUX.1-schnell, local GPU).

Install

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

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

{
  "mcpServers": {
    "coreforge-media": {
      "command": "npx",
      "args": ["-y", "coreforge-media-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-media/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.
  • Some tools depend on server-side hub services; if one is offline the API returns a structured error body, which the tools pass through unchanged.
  • Transcription and document parsing can take a minute or more for large inputs.