On this page
Quickstart
Three steps from nothing to a checked answer. This example runs the AI Citation Checker on text from your own model.
There is nothing to set up
No account, no key, no SDK. Every endpoint is public and free. Call it from your server, a script or a notebook.
Send the text or URL
curl -X POST https://opentags.io/api/tools/citation-check \
-H "Content-Type: application/json" \
-d '{"text":"Remote work raised output 13% (https://news.stanford.edu/...)."}'Citation checks open every link, so give the request up to 60 seconds. URL tools usually answer in one or two.
Act on the result
Every tool returns a 0–100 score and a list of findings with plain-English notes. Use them to block, fix or publish:
const { score, links } = data.result;
const bad = links.filter((l) => l.verdict === "broken");
if (bad.length) {
// Ask your model to fix or drop these sources before you publish.
console.log("Fix these:", bad.map((l) => `${l.url}: ${l.notes.join(" ")}`));
} else if (score >= 80) {
publish(answer);
}Authentication
None. OpenTags has no API keys, accounts or tokens, and never will for the free tools. Requests are limited per IP address instead (see Limits).
| Surface | Auth | CORS |
|---|---|---|
| MCP server | None. Pick “No authentication” if your client asks. | * |
| Markdown endpoint | None | * |
| REST endpoints | None | Same-origin only. Call them from your server. |
MCP server
Connect your AI
OpenTags is a remote Model Context Protocol server with 11 tools. Add it once and your assistant can check its own citations, read pages as Markdown, audit share previews and AI crawler access, and make short links and QR codes.
| Endpoint | https://opentags.io/api/mcp |
| Transport | Streamable HTTP, POST only. Stateless: no session id, no SSE stream. |
| Protocol versions | 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 |
| Capabilities | tools (resources/list and prompts/list return empty lists) |
| Registry name | io.opentags/opentags |
Add it to your client
Settings → Connectors → Add custom connector
Name: OpenTags
URL: https://opentags.io/api/mcp
Auth: noneThen ask, for example: “Research the 4-day work week with sources, then check the citations with OpenTags before you answer.” More prompts on the connector page.
JSON-RPC
Clients and SDKs handle this for you. To talk to the server directly, send one JSON-RPC 2.0 message per POST, or a batch of up to 20 as an array. Responses are plain JSON; notifications get an empty 202.
curl https://opentags.io/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": { "name": "page_to_markdown", "arguments": { "url": "https://example.com" } }
}'Response
content holds a readable version for the model (plus a PNG for qr_code). structuredContent holds the same result as JSON for programs.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [{ "type": "text", "text": "# Example Domain\n\nSource: https://example.com/ …" }],
"structuredContent": { "title": "Example Domain", "url": "https://example.com/", "words": 38, "tokens": 52, "notes": [] }
}
}When a tool can’t finish
A missing page or a timeout is not a protocol error. You get a normal result with isError: true and a message the assistant can pass on:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [{ "type": "text", "text": "We couldn't find that website. Check the address and try again." }],
"isError": true
}
}| Method | Result |
|---|---|
initialize | Echoes your protocolVersion if supported, else the newest. Server info: opentags 3.0.0. |
tools/list | Every tool with name, title, description, inputSchema and annotations. |
tools/call | { name, arguments } → content + structuredContent. |
ping | {} |
Tools
Generated from the server’s own definitions, so it always matches what tools/list returns. Tools that take a URL accept a bare domain too.
| Tool | Type | What it does |
|---|---|---|
| check_citations | read-only | Check citations |
| verify_answer | read-only | Verify an answer |
| page_to_markdown | read-only | Read page as Markdown |
| audit_share_preview | read-only | Audit share preview |
| generate_meta_tags | read-only | Generate meta tags |
| check_ai_crawlers | read-only | Check AI crawler access |
| generate_llms_txt | read-only | Generate llms.txt |
| draft_social_posts | read-only | Draft social posts |
| shorten_url | creates data | Shorten a link |
| link_stats | read-only | Short link stats |
| qr_code | read-only | Make a QR code |
Check citations
check_citationsVerifies the sources in a piece of text, such as an AI answer. Opens every link (up to 15) and reports whether each page exists, whether quoted text and figures actually appear on it, and the page sentence that best matches the claim. Also looks up DOIs, arXiv ids and titled paper references in Crossref and arXiv to catch made-up papers. Use it before presenting sourced answers.
Arguments
| Name | Type | Description |
|---|---|---|
textrequired | string | The text to check, including its links (markdown or bare URLs). Up to 20,000 characters. |
ReturnsScore, counts per verdict, one entry per link (status, HTTP code, quotes found, best-matching sentence, verdict, notes), paper lookups and unlinked quotes. Opens up to 15 links.
Verify an answer
verify_answerChecks an AI answer claim by claim. Breaks the text into factual claims, opens the source each one cites (or searches for one when none is given), and marks each claim supported, unverified or contradicted, with the page sentence that settles it. Use it to fact-check a sourced answer against what its sources actually say.
Arguments
| Name | Type | Description |
|---|---|---|
textrequired | string | The AI answer to verify, including its links. Up to 20,000 characters. |
ReturnsScore, counts of supported / unverified / contradicted claims, and per claim its source, verdict, the settling sentence and notes.
Read page as Markdown
page_to_markdownFetches a public web page and returns its main content as clean Markdown (no navigation, ads or scripts), with an approximate token count. Set whole_site to true to read up to 25 pages from the site's sitemap as one document.
Arguments
| Name | Type | Description |
|---|---|---|
urlrequired | string | Public page URL, e.g. https://example.com/blog/post |
whole_site | boolean | Read up to 25 pages of the site instead of one page. Slower. Default: false. |
ReturnsThe Markdown as text (up to 120,000 characters), plus title, url, words, tokens and notes. whole_site reads up to 25 pages from the sitemap.
Check AI crawler access
check_ai_crawlersChecks a site's robots.txt for 10 AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended and more), looks for llms.txt and noindex, and returns an AI-readiness score with fixes.
Arguments
| Name | Type | Description |
|---|---|---|
urlrequired | string | Public page URL, e.g. https://example.com/blog/post |
ReturnsAI-readiness score, an entry per crawler (bot, owner, purpose, allowed, rule), robotsFound, llmsFound, noindex, checks and a robots.txt snippet.
Generate llms.txt
generate_llms_txtBuilds a draft llms.txt file for a site from its homepage title, description and links.
Arguments
| Name | Type | Description |
|---|---|---|
urlrequired | string | Public page URL, e.g. https://example.com/blog/post |
Returnsmarkdown (the draft llms.txt), notes and linkCount.
Shorten a link
shorten_urlCreates a free, permanent OpenTags short link (opentags.io/AbC123) for a URL, optionally adding UTM tracking tags. Returns the short link and its stats code. Only create links the user asked for.
Arguments
| Name | Type | Description |
|---|---|---|
urlrequired | string | The long URL to shorten. |
utm_source | string | Optional, e.g. linkedin |
utm_medium | string | Optional, e.g. social |
utm_campaign | string | Optional, e.g. spring-launch |
utm_content | string | Optional |
ReturnsshortUrl, shortCode, longUrl and statsCode. Creates a permanent public link, so call it only when the user asks. 10 a minute.
Short link stats
link_statsReturns the click count, creation date and last click time of an OpenTags short link.
Arguments
| Name | Type | Description |
|---|---|---|
short_coderequired | string | The code after opentags.io/, or the full short link. |
ReturnsshortUrl, longUrl, clicks, createdAt and lastClicked.
Make a QR code
qr_codeMakes a QR code image for a URL or short text. Returns a PNG image and the SVG source.
Arguments
| Name | Type | Description |
|---|---|---|
textrequired | string | The URL or text to encode (up to 1,000 characters). |
dark | string | Optional dark colour as hex, e.g. #0b1215 |
light | string | Optional light colour as hex, e.g. #ffffff |
Returnstext, svg and pngBase64, plus the 512×512 PNG as an image block in content.
HTTP API
Run a tool
/api/tools/{tool}Runs any tool from opentags.io/tools and returns its result.
Parameters
| Name | Type | Description |
|---|---|---|
tool | stringPath, required | One of the tool ids below. |
url | stringBody | The page to check. Required for every tool except citation-check and verify. |
text | stringBody | The text to check, up to 20,000 characters. Required for citation-check and verify. |
mode | "page" | "site"Body, optional | page-to-markdown only. site reads up to 25 pages from the sitemap. |
| Tool id | Input | What it does |
|---|---|---|
citation-check | text | Catch made-up sources in ChatGPT, Claude and Gemini answers |
verify | text | Does the source actually back up what your AI claims? |
page-to-markdown | url | Any web page as clean Markdown for your AI |
ai-crawler-check | url | Can ChatGPT, Claude and Perplexity read your site? |
llms-txt | url | Help AI agents find your best pages |
meta-writer | url | Fixed-length titles and descriptions in one click |
social-post | url | Ready-to-post drafts for any link |
The response is { data: { page, result }, sig }. result has the same shape as the matching MCP tool’s structuredContent, page describes the page that was read (text tools leave it out), and sig lets you save the result as a shareable report.
Reading the result
Every result has a 0–100 score. The findings use a small set of statuses:
| Tool | Status | Meaning | What to do |
|---|---|---|---|
| Citation check | verified | The page exists and backs the quote or figure. | Keep it. |
| check | The page exists but the claim isn’t clearly on it. | Read the evidence sentence. | |
| broken | Dead link, wrong page or made-up paper. | Replace or drop the source. | |
| Verify | supported | The source says what the claim says. | Keep it. |
| unverified | No source found that settles it. | Add a source or soften the claim. | |
| contradicted | The source says something different. | Fix the claim. | |
| Share preview, AI crawlers | pass | Looks right. | Nothing. |
| warn | Works, but could be better. | Follow the detail text. | |
| fail | Missing or broken. | Fix before you share. |
Citation and verify results also include a fixPrompt: a ready-made message you can send back to your model to correct the answer.
Page metadata
/api/meta-fetcher?url={url}The tags that decide how a link looks when shared: title, description, canonical, Open Graph, Twitter card, favicon, JSON-LD types and headings.
Parameters
| Name | Type | Description |
|---|---|---|
url | stringQuery, required | The page to read, URL-encoded. |
curl "https://opentags.io/api/meta-fetcher?url=https%3A%2F%2Fstripe.com"{
"data": {
"url": "https://stripe.com/",
"status": 200,
"title": "Stripe | Financial Infrastructure to Grow Your Revenue",
"description": "…",
"canonical": "https://stripe.com/",
"og": { "title": "…", "image": "https://…", "siteName": "Stripe", … },
"twitter": { "card": "summary_large_image", "site": "@stripe", … },
"jsonLdTypes": ["Organization"],
"tagCount": 42
},
"sig": "…"
}Markdown endpoint
/md/{url}Put opentags.io/md/ in front of any public URL to get its main content as clean Markdown, without menus, ads or scripts. Built for agents and “fetch this URL” features. Send Accept: application/json to get { url, title, tokens, words, markdown } instead.
curl -L https://opentags.io/md/https://example.com/blog/postThe server tidies the double slash in https:// with a 308 first, so let your client follow redirects (curl -L; fetch and requests do it already). The scheme is optional and query strings are passed through.
| Response header | Value |
|---|---|
X-Source-Url | Final URL read, after redirects. |
X-Token-Estimate | Approximate LLM token count. |
Cache-Control | 5 minutes in browsers, 1 hour at the edge. |
Access-Control-Allow-Origin | * |
Short links
/api/url-shortenerParameters
| Name | Type | Description |
|---|---|---|
longUrl | stringBody, required | The http(s) URL to shorten. opentags.io links are refused. |
title, description, image | stringBody, optional | Stored with the link. |
curl -X POST https://opentags.io/api/url-shortener \
-H "Content-Type: application/json" \
-d '{"longUrl":"https://mysite.com/launch"}'{
"success": true,
"data": { "shortCode": "AbC123", "shortUrl": "https://opentags.io/AbC123", "longUrl": "https://mysite.com/launch", "createdAt": "2026-11-27T12:00:00.000Z" }
}/api/url-shortener?shortCode={code}Returns the same fields plus clicks and lastClicked. Opening https://opentags.io/{code} answers with a 307 to the long URL and counts the click.
Shareable reports
/api/reportsSaves a result as a public page at /r/{id} for 90 days. Only results OpenTags produced can be saved: send back data and sig exactly as you got them.
Parameters
| Name | Type | Description |
|---|---|---|
kind | stringBody, required | share-preview, citation-check, verify, ai-crawler-check, meta-writer, social-post, llms-txt. Use share-preview for meta-fetcher results. |
data | objectBody, required | The data object from the tool response, unchanged. |
sig | stringBody, required | The sig from the same response. |
{ "data": { "id": "k3J9xQ2mPa", "url": "https://opentags.io/r/k3J9xQ2mPa", "expiresAt": "2027-02-25T12:00:00.000Z" } }Reference
Errors
REST endpoints return { "error": "…" } with a matching status. The Markdown endpoint returns the message as plain text. Messages are written for people, so you can show them as they are.
| HTTP | Meaning |
|---|---|
| 400 | Missing or invalid URL, private address, unsupported port or malformed JSON. |
| 404 | Unknown tool or short code, or the website’s domain doesn’t exist. |
| 405 | GET sent to the MCP endpoint. Use POST. |
| 413 | Report too large to save (about 300 KB). |
| 422 | The target page returned an HTTP error, so there was nothing to convert. |
| 429 | Rate limit reached. Wait a minute. |
| 500 | Something went wrong on our side. Retry once. |
| 502 | We couldn’t reach the website. |
| 503 | Short links or reports aren’t switched on for this deployment. |
| 504 | The website took longer than 8 seconds. |
| 508 | More than 5 redirects. |
| MCP code | HTTP | Meaning |
|---|---|---|
-32700 | 400 | Body is not valid JSON. |
-32600 | 400 / 200 | Not JSON-RPC 2.0, or an empty batch or one over 20. |
-32601 | 200 | Unknown method. |
-32602 | 200 | Unknown tool. |
-32000 | 429 | Rate limit reached. |
Retry 429 and 5xx after a pause. Don’t retry other 4xx errors: fix the input first.
Limits and retention
| Limit | Value |
|---|---|
| All /api/* and /md/* traffic | 100 requests a minute per IP, at the network edge |
| MCP server | 60 requests a minute; shorten_url 10 new links a minute |
| Run a tool | 20 a minute; citation-check and verify 6 a minute |
| Page metadata, Markdown | 30 a minute each |
| Short links, reports | 10 a minute each |
| Request time | Up to 60 seconds (30 for Markdown) |
| Text input | 20,000 characters |
| Pages fetched | Public http(s) only, ports 80, 443, 8080, 8443; 8 s timeout; 5 redirects; first 2 MB; no JavaScript |
| Tool inputs and results | Not stored |
| Short links | Kept permanently, with click counts |
| Shared reports | Deleted after 90 days |
| Caching | Page metadata 5 minutes, Markdown 1 hour |
Per-endpoint limits are counted per server instance, so treat them as a ceiling rather than an exact quota.
OpenAPI and support
The HTTP API is described in an OpenAPI 3.1 document at /openapi.json, so you can import it into Postman or generate a client. The MCP server is listed in the MCP Registry as io.opentags/opentags.
Building something bigger, or found a bug? Reach out through the about page. OpenTags is free while it grows.