---
name: Mirelia Structured Data Marketplace
description: USPTO patent MCP server for competitive intelligence, prior art search, and IP analytics. 30000+ AI-enriched JSON patents (CPC G/H). Search free via xpay; purchase full datasets with on-chain USDC/ROSE (x402 / MPP v1.0).
url: https://mirelia-structured-data-marketplace.mcp.xpay.sh/mcp
---

# Mirelia Structured Data Marketplace

USPTO patent MCP server for competitive intelligence, prior art search, and IP analytics. 30000+ AI-enriched JSON patents (CPC G/H). Search free via xpay; purchase full datasets with on-chain USDC/ROSE (x402 / MPP v1.0).

## Tools

### search_single_patents

[COST: 0.02 USDC (API Fee)]
Searches for high-value individual patents ($0.50 each) from a continuously expanding, daily-updated USPTO database.
Returns lightweight evaluation data: [patent_id, title, importance_p, publication_date, primary_cpc, secondary_cpcs, biz_target_ind].

[AVAILABLE PRIMARY CPCs]: 
G01(Measurement/Testing), G02(Optics), G03(Photography), G04(Horology), G05(Control Systems), 
G06(Computing/Data Processing), G07(Checking Devices), G08(Signaling), G09(Displays/Cryptography), 
G10(Acoustics/Speech), G11(Info Storage), G12(Instrument Details), G16(Specific ICT/Healthcare), 
G21(Nuclear), H01(Basic Electric Elements), H02(Electric Power), H03(Electronic Circuitry), 
H04(Communication), H05(Misc Electric), H10(Solid State Devices)

[EXAMPLE ARGUMENTS - MINIMAL]:
{"primary_cpc": "G06"}

[EXAMPLE ARGUMENTS - MAXIMAL]:
{"primary_cpc": "H02", "cross_domain_cpc": "G06", "keyword": "thermal power generation", "min_score": 80, "limit": 50}

  Input: {
    "title": "search_single_patentsArguments",
    "type": "object",
    "properties": {
      "limit": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "description": "Number of results to return (max 100).",
        "default": 20,
        "title": "Limit"
      },
      "cross_domain_cpc": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "Optional secondary CPC for cross-domain searches.",
        "default": null,
        "title": "Cross Domain Cpc"
      },
      "keyword": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "Searches only in title and biz_target_ind.",
        "default": null,
        "title": "Keyword"
      },
      "min_score": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "description": "Minimum importance_p (0-100).",
        "default": 70,
        "title": "Min Score"
      },
      "primary_cpc": {
        "title": "Primary Cpc",
        "type": "string",
        "description": "Must be one of the exact codes (e.g., G01, G06, H04)."
      }
    },
    "required": [
      "primary_cpc"
    ]
  }

### purchase_single_patent

[COST: 0.02 USDC (API Fee) + 0.50 USDC (Data Price)]
Verifies on-chain payment and delivers the FULL structured JSON dataset for a single patent.

[AGENTIC WORKFLOW (MPP v1.0 402 Payment Flow)]:
This is a mandatory 2-step process. Do NOT hallucinate a tx_hash.
STEP 1: Call this tool with ONLY 'patent_id' and 'network'. Leave 'tx_hash' EMPTY. The server will return a 402 Payment Required response containing a 'transaction_payload'.
STEP 2: You MUST securely execute/broadcast the exact 'transaction_payload' on the blockchain using your wallet. This payload contains the required cryptographic HMAC memo to bind your payment to the product.
STEP 3: Once the transaction is confirmed on-chain, call this exact tool AGAIN, providing the 'patent_id', 'network', and the resulting 66-character 'tx_hash'.

[SUPPORTED NETWORKS]: 'polygon' (USDC), 'base' (USDC), 'oasis' (ROSE natively via EOA, or WROSE via AA wallets). Default is 'polygon'.

[EXAMPLE ARGUMENTS - MINIMAL (Step 1 - Request Payment Info)]:
{"patent_id": "US12449246B2"}

[EXAMPLE ARGUMENTS - MAXIMAL (Step 3 - Claim Data)]:
{"patent_id": "US12449246B2", "network": "polygon", "tx_hash": "0x123abc456def7890123abc456def7890123abc456def7890123abc456def7890"}

  Input: {
    "title": "purchase_single_patentArguments",
    "type": "object",
    "properties": {
      "patent_id": {
        "title": "Patent Id",
        "type": "string",
        "description": "The patent_id obtained from search_single_patents."
      },
      "tx_hash": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "The transaction hash. LEAVE EMPTY first to retrieve payment instructions.",
        "default": null,
        "title": "Tx Hash"
      },
      "network": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "Blockchain network. Defaults to 'polygon' (USDC). Supports 'base' or 'oasis'.",
        "default": "polygon",
        "title": "Network"
      }
    },
    "required": [
      "patent_id"
    ]
  }

### search_packages

[COST: 0.02 USDC (API Fee)]
Exploration tool for USPTO bulk patent datasets (10, 100, 1000 items per pack). 
Best for large-scale R&D or commercial analysis.
If 'search_query' is empty, returns the full catalog of available packages.
If 'search_query' contains a CPC or keyword, returns specific domain packs.

[AVAILABLE DOMAINS]: 
G01(Measurement), G02(Optics), G03(Photography), G04(Horology), G05(Control), 
G06(Computing), G07(Checking), G08(Signaling), G09(Displays), G10(Acoustics), 
G11(Storage), G12(Instruments), G16(Healthcare ICT), G21(Nuclear), H01(Electric Elements), 
H02(Power), H03(Circuitry), H04(Communication), H05(Misc), H10(Solid State)

[EXAMPLE ARGUMENTS - MINIMAL (List All Catalogs)]:
{}

[EXAMPLE ARGUMENTS - MAXIMAL (Search Specific Domain & Limit)]:
{"search_query": "G06_100", "limit": 10}

  Input: {
    "title": "search_packagesArguments",
    "type": "object",
    "properties": {
      "search_query": {
        "description": "Search keywords like 'G01', 'H04'. Leave blank for all.",
        "default": "",
        "title": "Search Query",
        "type": "string"
      },
      "limit": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "description": "Number of results to return (max 100).",
        "default": 20,
        "title": "Limit"
      }
    }
  }

### verify_crypto_payment_and_deliver

[COST: 0.02 USDC (API Fee) + Bulk Package Price]
Verifies on-chain payment and delivers the FULL JSON dataset URL for bulk packages.

[AGENTIC WORKFLOW (MPP v1.0 402 Payment Flow)]:
This is a mandatory 2-step process. Do NOT hallucinate a tx_hash.
STEP 1: Call this tool with ONLY 'package_tag' and 'network'. Leave 'tx_hash' EMPTY. You will receive a 402 response with a 'transaction_payload'.
STEP 2: Execute/broadcast the 'transaction_payload' exactly as provided to apply the HMAC cryptographic memo. Do not modify the payload data.
STEP 3: After confirmation, call this tool AGAIN with the exact 'package_tag', 'network', and the resulting 'tx_hash' to receive the dataset.

[EXAMPLE ARGUMENTS - MINIMAL (Step 1 - Request Payment Info)]:
{"package_tag": "G01_10_001"}

[EXAMPLE ARGUMENTS - MAXIMAL (Step 3 - Claim Data)]:
{"package_tag": "G01_10_001", "network": "base", "tx_hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"}

  Input: {
    "title": "verify_crypto_payment_and_deliverArguments",
    "type": "object",
    "properties": {
      "tx_hash": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "Transaction hash. LEAVE EMPTY for 402 request.",
        "default": null,
        "title": "Tx Hash"
      },
      "package_tag": {
        "title": "Package Tag",
        "type": "string",
        "description": "The tag of the package to purchase."
      },
      "network": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "The network (base, polygon, oasis). Defaults to 'polygon'.",
        "default": "polygon",
        "title": "Network"
      }
    },
    "required": [
      "package_tag"
    ]
  }

## Usage

Add to your MCP client configuration:

```json
{
  "mcpServers": {
    "mirelia-structured-data-marketplace": {
      "url": "https://mirelia-structured-data-marketplace.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"
    }
  }
}
```
