Skip to main content
Glama

Ground Truth MCP

Let AI agents validate their own claims with real, live data from the web.

MCP Cloudflare Workers Stripe

Live URL: https://ground-truth-mcp.anish632.workers.dev


๐ŸŽฏ What is Ground Truth?

Ground Truth is an MCP server that provides AI agents with fact-checking and market research tools. Instead of hallucinating or guessing, agents can:

  • โœ… Check if an API endpoint actually exists

  • ๐Ÿ“Š Count real market competitors

  • ๐Ÿ’ฐ Extract actual pricing from websites

  • ๐Ÿ” Compare packages side-by-side

  • ๐Ÿงช Cross-reference claims against live sources

  • โš—๏ธ Test hypotheses with structured tests

All results come from live data fetched in real-time, with 5-minute caching for performance.


๐Ÿš€ Quick Start

Free Tier (No Signup)

Try the check_endpoint tool immediately:

curl -X POST https://ground-truth-mcp.anish632.workers.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "check_endpoint",
      "arguments": {"url": "https://api.github.com"}
    },
    "id": 1
  }'

Pro Tier ($9/month)

  1. Visit pricing page

  2. Subscribe via Stripe

  3. Get your API key: gt_live_...

  4. Add to requests:

curl -X POST https://ground-truth-mcp.anish632.workers.dev/mcp \
  -H "X-API-Key: gt_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"estimate_market","arguments":{"query":"react","registry":"npm"}},"id":1}'

๐Ÿ› ๏ธ Available Tools

Tool

Free?

Description

check_endpoint

โœ… Yes

Probe any URL, get status, timing, auth requirements

estimate_market

๐Ÿ’ณ Pro

Count packages in npm/PyPI to gauge market size

check_pricing

๐Ÿ’ณ Pro

Extract pricing from any website

compare_competitors

๐Ÿ’ณ Pro

Side-by-side package comparison

verify_claim

๐Ÿ’ณ Pro

Cross-reference claims with live sources

test_hypothesis

๐Ÿ’ณ Pro

Automated fact-checking with structured tests

Full API documentation: API_USAGE.md


๐Ÿ’ฐ Pricing

Free Tier

  • check_endpoint - Unlimited forever

Pro Tier - $9/month

  • All 5 premium tools - Unlimited usage

  • 5-minute caching - Fast responses

  • 99.9% uptime SLA

  • Cancel anytime - No questions asked

Subscribe now โ†’


๐Ÿ—๏ธ Tech Stack

  • Runtime: Cloudflare Workers (edge computing)

  • Storage: Durable Objects with SQLite (caching + usage logs)

  • API Keys: Cloudflare KV (encrypted at rest)

  • Billing: Stripe Checkout + Subscriptions

  • Protocol: Model Context Protocol (MCP)

  • Language: TypeScript


๐Ÿ“š Documentation


๐Ÿ”ง Development

Prerequisites

  • Node.js 18+

  • npm or pnpm

  • Cloudflare account

  • Stripe account

Local Setup

  1. Clone the repo:

    cd "/Users/anishdas/Apps/Ground Truth/ground-truth-mcp"
  2. Install dependencies:

    npm install
  3. Create KV namespace:

    npx wrangler kv namespace create API_KEYS
  4. Update wrangler.jsonc with KV namespace ID

  5. Set secrets:

    npx wrangler secret put STRIPE_SECRET_KEY
    npx wrangler secret put STRIPE_WEBHOOK_SECRET
  6. Run locally:

    npm start
    # or
    npx wrangler dev
  7. Deploy:

    npm run deploy
    # or
    npx wrangler deploy

Full setup guide: SETUP.md


๐Ÿงช Testing

Test Free Tier (No Auth)

curl -X POST http://localhost:8787/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "check_endpoint",
      "arguments": {"url": "https://example.com"}
    },
    "id": 1
  }'

Test Auth Rejection

# Should return 402 (payment required)
curl -X POST http://localhost:8787/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "estimate_market",
      "arguments": {"query": "test", "registry": "npm"}
    },
    "id": 1
  }'

Test Stripe Checkout

  1. Visit http://localhost:8787/pricing

  2. Click "Subscribe Now"

  3. Use test card: 4242 4242 4242 4242

  4. Complete checkout

  5. Verify API key displayed on success page


๐Ÿ” Security

  • API Keys: Stored in Cloudflare KV (encrypted at rest)

  • Stripe Keys: Stored as Worker secrets (encrypted)

  • Webhook Validation: Signature verification (simplified for MVP)

  • Key Revocation: Inactive keys marked on subscription cancellation

  • Audit Trail: Keys not deleted, only marked inactive


๐Ÿšฆ Status & Monitoring


๐Ÿ“Š Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   User      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ”‚
       โ”œโ”€โ”€โ”€ Free Tier (no auth)
       โ”‚    โ””โ”€โ–บ check_endpoint
       โ”‚
       โ”œโ”€โ”€โ”€ Pro Tier (API key)
       โ”‚    โ”œโ”€โ–บ X-API-Key header
       โ”‚    โ”œโ”€โ–บ Validate against KV
       โ”‚    โ””โ”€โ–บ estimate_market, check_pricing, etc.
       โ”‚
       โ””โ”€โ”€โ”€ x402 (fallback)
            โ””โ”€โ–บ Crypto payment for single call
       
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Cloudflare Worker                  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚ Auth         โ”‚  โ”‚ Stripe       โ”‚ โ”‚
โ”‚  โ”‚ Middleware   โ”‚  โ”‚ Integration  โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚         โ”‚                 โ”‚          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚ KV Store    โ”‚  โ”‚ Durable       โ”‚ โ”‚
โ”‚  โ”‚ (API Keys)  โ”‚  โ”‚ Objects       โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚ (Cache+Logs)  โ”‚ โ”‚
โ”‚                   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿค Contributing

Not accepting external contributions at this time (private project), but feel free to fork for your own use.


๐Ÿ“œ License

MIT License - see LICENSE file for details


๐Ÿ†˜ Support


๐ŸŽฏ Use Cases

For AI Agents

  • Validate market research before presenting findings

  • Fact-check claims against live sources

  • Compare competitors with real data

  • Test hypotheses with structured verification

For Developers

  • Pre-validate APIs before recommending them

  • Check pricing without manual web scraping

  • Estimate package counts for market sizing

  • Automated fact-checking in CI/CD

For Researchers

  • Cross-reference claims with live data

  • Track package versions over time

  • Monitor pricing changes

  • Validate academic hypotheses


๐Ÿ† What Makes Ground Truth Different?

โœ… Live Data: No stale databases, all results from real-time fetching
โœ… Caching: 5-minute cache for performance without sacrificing freshness
โœ… MCP Native: Built for AI agents from day one
โœ… Edge Computing: Fast responses from Cloudflare's global network
โœ… Free Tier: No credit card required to try it
โœ… Transparent Pricing: $9/month, unlimited usage, no hidden fees
โœ… x402 Fallback: Pay-per-call with crypto if you don't want a subscription


๐Ÿ“ˆ Roadmap

  • Core fact-checking tools

  • Stripe billing integration

  • API key authentication

  • Free tier (check_endpoint)

  • Webhook handling for subscriptions

  • Usage analytics dashboard

  • Email notifications

  • Team accounts

  • Enterprise tier

  • Custom integrations


๐Ÿ™ Acknowledgments


Made with โค๏ธ by Anish Das

Last updated: March 20, 2026

-
security - not tested
A
license - permissive license
-
quality - not tested

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/anish632/ground-truth-mcp'

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