Skip to the page
In an emergency call 911. Emergency 911 · Poison Help: 1-800-222-1222. Crisis line: call or text · Crisis 988.
The Wiley Rule

Developers

Public MCP server

Read-only access to The Wiley Rule’s public data for Claude and other AI apps, using the Model Context Protocol (MCP). Server URL: https://thewileyrule.org/mcp

Prefer plain web requests or spreadsheets? The open data API serves every dataset as JSON or CSV, described at /api/openapi.json.

Using Claude, ChatGPT or Grok? Start with the short how-to and “Add to” buttons on our AI assistants page.

Add it to Claude (claude.ai or Claude Desktop)

The fastest way on claude.ai is the official directory listing: open The Wiley Rule in Claude’s directory (opens in a new tab) and click Connect. Then turn it on in a chat from the tools menu. On Team or Enterprise plans an owner may need to allow it first.

Or add it as a custom connector:

  1. Open Settings → Connectors (on Team or Enterprise plans an owner may need to allow custom connectors).
  2. Choose Add custom connector.
  3. Name: The Wiley Rule. URL: https://thewileyrule.org/mcp. Leave OAuth fields empty (no sign-in needed).
  4. Click Add, then enable it in a chat from the tools menu. Try: “Using The Wiley Rule, which states ban concentrated 7-OH?”

Older Claude Desktop builds without custom connectors can use the mcp-remote (opens in a new tab) bridge in claude_desktop_config.json:

{
  "mcpServers": {
    "wiley-rule": { "command": "npx", "args": ["-y", "mcp-remote", "https://thewileyrule.org/mcp"] }
  }
}

Claude Code

claude mcp add --transport http wiley-rule https://thewileyrule.org/mcp

Cursor, VS Code and other MCP clients

Any client that supports remote MCP servers over Streamable HTTP works. Example (.cursor/mcp.json or VS Code mcp.json):

{
  "mcpServers": {
    "wiley-rule": { "url": "https://thewileyrule.org/mcp" }
  }
}

Test with the MCP Inspector: npx @modelcontextprotocol/inspector, choose transport “Streamable HTTP” and enter the URL.

Tools

  • search_research(query, topic?, year?, limit?)
    Search our reviewed research library on 7-OH, MGPI, kratom alkaloids and related products.
  • get_study(id)
    One study by library id, PMID or DOI.
  • search_products(query, limit?)
    Products on our product pages, with only sourced claims: lab or forensic tests, FDA warning letters, court filings.
  • state_actions(state?)
    State bans, scheduling and rules on concentrated 7-OH.
  • bill_status(query?)
    Tracked bills and federal actions (NC bills, DEA scheduling, FDA).
  • nc_legislation()
    North Carolina bills and status.
  • find_my_lawmakers(zip)
    NC only: House and Senate districts for a ZIP and members' public office pages.
  • who_supports(office?)
    Public officials with a public record of support: name, office, district, party, evidence label.
  • latest_news(n?)
    Latest public news and official notices.
  • key_dates()
    Upcoming dates that matter.
  • about_wiley_rule()
    Who we are, our mission, how to report a product.
  • search_world_literature(query, topic?, country?, from?, to?, sort?, limit?)
    Our worldwide index of published studies (from Europe PMC and OpenAlex) on 7-OH and kratom, vapes, synthetic cannabinoids, nitazenes, hemp-derived intoxicants, tianeptine and more. Indexed, not reviewed: metadata and links only.
  • search_actors(query?, type?, family?, record?, agency?, limit?)
    Companies, associations and people named in government and court records (FDA, DOJ, DEA, state attorneys general and more), each with its record label and source link. A warning letter or indictment is not a finding of guilt.

Example prompts

Turn the connector on in a chat, then try:

  • “Using The Wiley Rule, which states ban or schedule concentrated 7-OH?”
    Uses: state_actions
  • “What does The Wiley Rule's research library say about 7-OH withdrawal treated with buprenorphine?”
    Uses: search_research, then get_study
  • “What is the status of North Carolina House Bill 328, and what happens next?”
    Uses: bill_status or nc_legislation
  • “Which 7-OH tablets have lab tests on The Wiley Rule's product pages, and what did the tests find?”
    Uses: search_products
  • “Who represents ZIP 27601 in the NC House and Senate, and is there a public record of their position on 7-OH?”
    Uses: find_my_lawmakers
  • “Which companies tied to tianeptine have been named in FDA or Justice Department records?”
    Uses: search_actors

Raw JSON-RPC

The server is stateless and answers with JSON (no session, no SSE stream).

curl -s https://thewileyrule.org/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"state_actions","arguments":{"state":"NC"}}}'

Limits and rules

  • Read-only and public data only: the same information that is on this website. No accounts, no personal data.
  • Rate limit: 60 requests per minute and 1,500 per day per IP address. Requests from Claude’s connector service share a larger pool. Requests over the limit get HTTP 429 with Retry-After.
  • Arguments are checked against each tool’s input schema. A missing or invalid argument returns a tool error that says what to fix.
  • Inputs are capped (search text 200 characters, request body 16 KB, batches of up to 10 calls). CORS is open for browser clients.
  • Product claims are limited to sourced records (lab tests, FDA actions, court filings). There is no store or seller data.
  • Please attribute “The Wiley Rule” and link the sources returned.

Troubleshooting

  • Claude can’t connect: check the URL is exactly https://thewileyrule.org/mcp and that the OAuth fields are empty. The server needs no sign-in.
  • Tools don’t appear in a chat: turn the connector on for that chat from the tools menu. On Team and Enterprise plans an owner may need to allow it first.
  • “Invalid arguments”: the message names the argument and the allowed values. Ask again with the corrected value.
  • “Rate limit reached”: wait the number of seconds shown, then try again.
  • A GET request returns 405: expected. The server is stateless and answers JSON-RPC sent by POST.
  • No results: try fewer or broader keywords. Results cover only what is published on this site.

Privacy, terms and support

How the server handles data is in our privacy policy. Use of the data is covered by our terms of use. For help, bug reports or security concerns, email [email protected].

Add your name

Stand with families asking for strong food and drug safety rules: proof of safety before sale, clear labels, and an end to concentrated 7-OH and illegal vapes.

Your name, ZIP and email stay private and are never sold or shared. Only the total number of names is shown. Privacy