Submit

Text Summarizer

@garyedgington

Text Summarizer condenses long-form content into structured, actionable summaries so AI agents and applications can work with information faster and at lower cost. Feed it meeting notes, research articles, documentation, JSON payloads, or Markdown files and get back a clean summary in the format you need — a full prose paragraph, a bullet list of key points, a single headline, or a TL;DR — at the length you specify. Built for agents that process high volumes of text where passing the full content downstream is slow, expensive, or unnecessary. The compression ratio returned with every response lets callers track exactly how much content was reduced. No API keys or credentials required. Pay $0.005 USDC per call via x402 on Base mainnet. A free trial tool is included for integration testing — prose format, up to 4KB, no payment needed.
Overview

x402 Text Summarizer

Compress long-form text to a target length and format using Claude AI. Supports plain text, Markdown, and JSON input. Part of the x402 micropayment task market.

Live service: https://project-summarizer-production.up.railway.app (pending deployment)
Payment: $0.005 USDC per call · x402 v2 · Base mainnet


What it does

Send text (or Markdown or a JSON payload) and get back a compressed summary in your chosen format — prose paragraph, bullet list, headline, or TL;DR. Specify a length preset (brief, medium, detailed) or an exact target word count.

Built for autonomous agents, document pipelines, and developers who need reliable, cheap, per-call text compression without managing prompt engineering or model selection themselves.

Supports two access modes:

  • MCP tools via SSE — connect any MCP-compatible client directly, fiat billing via MCP-Hive
  • REST + x402 — HTTP endpoint with USDC micropayment on Base mainnet ($0.005/call)

Endpoints

EndpointPaymentFormatsLimit
GET /sse (MCP SSE)Fiat via MCP-HiveAllNone
POST /v1/summarizex402 USDC ($0.005)All100KB input
POST /v1/summarize/trialFreeprose only4KB input
GET /healthFree

Add to your MCP client config:

{
  "mcpServers": {
    "summarizer": {
      "url": "https://project-summarizer-production.up.railway.app/sse"
    }
  }
}

Two tools are available: summarize_text (full, all formats and lengths) and summarize_text_trial (free, prose only, 4KB limit).


Quickstart — trial (no payment)

curl -X POST https://project-summarizer-production.up.railway.app/v1/summarize/trial \
  -H "Content-Type: application/json" \
  -d '{
    "input": "The Federal Reserve held interest rates steady on Wednesday, as expected by markets, while signaling it remains in no rush to cut borrowing costs amid continued uncertainty over trade policy and its effects on inflation. Fed Chair Jerome Powell said the central bank is watching the data carefully and is prepared to act if conditions change, but emphasized that patience is the appropriate stance for now. Markets had priced in two cuts by year-end before the meeting; that expectation held unchanged after the statement.",
    "format": "prose",
    "length": "brief"
  }'

Response:

{
  "summary": "The Federal Reserve kept rates unchanged and signaled patience on cuts, citing trade policy uncertainty and inflation risk. Markets expect two cuts by year-end.",
  "format": "prose",
  "word_count": 30,
  "compression_ratio": 5.1,
  "notes": null,
  "meta": {
    "format": "prose",
    "length_preset": "brief",
    "target_words": null,
    "model": "claude-haiku-4-5",
    "input_length": 612
  }
}

Quickstart — paid endpoint (x402)

The paid endpoint requires an x402 v2 USDC micropayment of $0.005 per call on Base mainnet.

Payment flow:

  1. Send request to POST /v1/summarize without payment headers.
  2. Receive 402 Payment Required with x402Version=2 and payment details.
  3. Sign and send payment via PAYMENT-SIGNATURE header.
  4. Receive 200 with summary result.

Request fields

FieldTypeRequiredDefaultDescription
inputstringyesText, Markdown, or JSON string to summarize
input_typestringno"text""text", "markdown", or "json"
formatstringno"prose""prose", "bullets", "headline", or "tldr"
lengthstringno"medium""brief", "medium", or "detailed"
target_wordsintegernonullExact target word count (overrides length if set)
explainbooleannofalseInclude notes on what was omitted or compressed

Format options

FormatDescriptionTypical output
proseSingle paragraph summary1–3 sentences / 30–150 words
bulletsBullet list of key points3–7 bullet items
headlineOne-sentence headline≤ 20 words
tldrTL;DR prefix + one sentence≤ 25 words

Length presets

LengthTarget words (prose)Behavior
brief~30 wordsCore conclusion only
medium~80 wordsMain points + key context
detailed~200 wordsFull summary preserving structure

target_words overrides length when set.


Response fields

FieldTypeDescription
summarystringThe compressed output in the requested format
formatstringFormat used (prose, bullets, headline, tldr)
word_countintegerWord count of the summary
compression_ratiofloatApproximate input/output word ratio
notesstring / nullWhat was omitted or compressed (only when explain=true)
metaobjectModel, input length, and configuration metadata

Pricing

ModePrice
Trial (/v1/summarize/trial)Free
Paid (/v1/summarize)$0.005 USDC per call

Payment is handled via the x402 protocol — an HTTP-native micropayment standard using USDC on Base.


Health check

curl https://project-summarizer-production.up.railway.app/health
{"status": "ok", "service": "summarizer-agent", "version": "0.1.0"}

Ecosystem

This service is the fourth paid endpoint in the x402 micropayment task market:

Full capability manifest: GET https://project-a2a-production.up.railway.app/v1/capabilities


Reporting issues

If you encounter unexpected responses, payment errors, or summarization quality issues, please open a GitHub issue.

Include:

  • The endpoint called
  • The request body (redact sensitive data)
  • The response received
  • The X-Request-ID header value from the response if available

Server Config

{
  "mcpServers": {
    "x402-text-summarizer": {
      "url": "https://web-production-78e17.up.railway.app/sse"
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.