Skip to main content
Glama

Exa Licensed MCP (Copyright.sh)

Open-source MCP server that wraps Exa Search and adds Copyright.sh licensing, usage logging, and optional x402 licensed fetch.

Features

  • License discovery via ai-license meta tags

  • Usage logging for compensation and audit trails

  • Optional x402 licensed fetch on 402 Payment Required

  • Token estimation with tiktoken

  • Graceful degradation when the ledger is unavailable

Related MCP server: websearch-mcp-server

Quick Start

Install from source

git clone https://github.com/tymrtn/mcp-exa-licensed.git
cd mcp-exa-licensed
npm install
npm run build

Run via npx (if published)

npx @copyrightsh/exa-licensed-mcp@latest

Configuration

Copy env.example to .env and set your keys:

  • EXA_API_KEY

  • COPYRIGHTSH_LEDGER_API_KEY (recommended for license acquire + usage logging)

MCP Config Example (npx)

{
  "mcpServers": {
    "exa-licensed": {
      "command": "npx",
      "args": ["-y", "@copyrightsh/exa-licensed-mcp@latest"],
      "env": {
        "EXA_API_KEY": "exa-your-key-here",
        "COPYRIGHTSH_LEDGER_API": "https://ledger.copyright.sh",
        "COPYRIGHTSH_LEDGER_API_KEY": "cs-ledger-your-key-here"
      }
    }
  }
}

Environment Variables

Variable

Required

Default

Description

EXA_API_KEY

Yes

-

Exa API key

COPYRIGHTSH_LEDGER_API

No

https://ledger.copyright.sh

Ledger base URL

COPYRIGHTSH_LEDGER_API_KEY

Recommended

-

API key for license discovery + usage logging

ENABLE_LICENSE_TRACKING

No

true

Enable/disable licensing

ENABLE_LICENSE_CACHE

No

false

Cache license results

LICENSE_CACHE_TTL_SECONDS

No

300

Cache TTL for license lookups

LICENSE_CHECK_TIMEOUT_MS

No

5000

License discovery timeout (ms)

LICENSE_ACQUIRE_TIMEOUT_MS

No

8000

License acquisition timeout (ms)

USAGE_LOG_TIMEOUT_MS

No

3000

Usage logging timeout (ms)

FETCH_TIMEOUT_MS

No

12000

Direct fetch timeout (ms)

Tool

Search the web and optionally perform an x402-aware licensed fetch.

{
  "query": "AI licensing news",
  "num_results": 10,
  "type": "neural",
  "fetch": true,
  "stage": "infer",
  "distribution": "private",
  "estimated_tokens": 1500,
  "max_chars": 200000
}

CLI Helpers

node build/index.js --list-tools
node build/index.js --doctor

Notes on Paywalled Sources

This server only unlocks sources that implement the Copyright.sh x402 flow (402 + payment-required: x402). It does not bypass login/subscription paywalls.

Contributing

See CONTRIBUTING.md.

License

MIT

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 1 tool

    Disambiguation4/5

    With only one tool there is no risk of misselection within the set, so differentiation is trivially satisfied. The name hints at both search and licensing/ledger behavior, which makes the exact scope slightly fuzzy but not ambiguous relative to anything else.

    Naming Consistency4/5

    The single name is lowercase, hyphenated, verb-noun flavored (exa-search) with a vendor prefix and an emoji, which is readable and predictable. There is no second tool to establish or violate a pattern, and the emoji/prefix decoration is a minor deviation from a clean convention.

    Tool Count2/5

    One tool is very thin for a server that claims to combine web search, x402 paid fetching, and ledger recording. Those are distinct operations compressed into a single endpoint, so the surface feels under-scoped rather than well-scoped.

    Completeness3/5

    Search is covered, but there is no way to inspect or query the usage ledger, no separate fetch-by-URL operation, and no control over licensing/account state. These are notable gaps, though an agent can still accomplish the core search-plus-licensed-fetch workflow through the single tool.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to perform real-time web searches, company research, content crawling, LinkedIn searches, and deep research using the Exa AI Search API. Provides comprehensive web information retrieval capabilities in a safe and controlled manner.
      2
      1
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to perform basic and advanced web searches via the Exa API, returning real-time markdown-formatted results with titles, URLs, publication dates, and content summaries.
      -