Developer Documentation

LMCProtocol & MCP API Reference

Complete integration guide for REST endpoints, Model Context Protocol (MCP) server, and SDK toolchains.

1. Zero-SDK Quickstart

Query local entities and flaw diagnostics directly from your terminal using cURL:

curl -X POST "https://lmcprotocol.com/v1/search" \
  -H "Authorization: Bearer lmcp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "Solar Installers",
    "location": "Phoenix, AZ",
    "limit": 5,
    "filters": {
      "missing_pixel": true,
      "stalled_reviews": true
    }
  }'

2. Model Context Protocol (MCP) Setup

LMCProtocol is a native Model Context Protocol server. Connect it to Claude Desktop or Cursor by adding this to your config:

{
  "mcpServers": {
    "lmcprotocol": {
      "command": "npx",
      "args": ["-y", "lmcprotocol"],
      "env": {
        "LMCP_API_KEY": "lmcp_live_YOUR_KEY"
      }
    }
  }
}

3. POST /v1/search

Searches Google Maps spatial entities and performs live parallel flaw audits.

Field Type Description
query string Required. Target commercial niche (e.g. "Dentists", "Roofers")
location string Required. Target city and state/country (e.g. "Denver, CO")
filters.missing_pixel boolean Optional. Only returns businesses lacking Meta (Facebook) Pixel

4. OBDS-2026 Flaw Error Codes

Standardized diagnostic vulnerability codes returned inside diagnostic_telemetry.detected_flaws:

FLAW_PIXEL_MISSING

Website is missing Meta Pixel / CAPI tracking tags for paid ad traffic.

FLAW_GA4_MISSING

Google Analytics 4 measurement tag is not deployed on DOM.

FLAW_REVIEW_STALLED

Google review velocity has decayed or stalled below local 3-pack thresholds.

5. Subcent402 M2M Protocol (HTTP 402 / L402)

$0.005 / lookup

Autonomous AI agents (CrewAI, LangChain, AutoGen) can query LMCProtocol with zero monthly commitments or credit cards using the Subcent402 M2M protocol (subcent402.com).

import requests

# 1. Autonomous M2M invocation via Subcent402 L402 Token
response = requests.post(
    "https://lmcprotocol.com/v1/search",
    headers={
        "Authorization": "L402 YOUR_SUBCENT402_TOKEN",
        "Content-Type": "application/json"
    },
    json={
        "query": "Solar Installers",
        "location": "Phoenix, AZ",
        "limit": 5,
        "filters": { "missing_pixel": True }
    }
)

data = response.json()
for lead in data["data"]:
    print(f"{lead['entity_name']} -> {lead['outbound_hook']}")

Each request is settled on-chain via Base USDC or Lightning micro-settlement at a fixed $0.005 / lookup.