API & MCP
Everything a person can do on CiteShape, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://citeshape.usefulweb.site/api/v1/calculate– run CiteShapeGET https://citeshape.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
CiteShape
CiteShape finds the identifier in whatever you paste (URL, "doi:", reference text), normalises it, validates check digits (ORCID ISO 7064, ISBN-10/13), resolves authoritative metadata from Crossref, ORCID and arXiv, and emits APA-style, BibTeX and RIS citations. Retrieved facts are kept separate from your input, and nothing missing is guessed.
| Field | Type | Default | Description |
|---|---|---|---|
identifier (required) | text | — | DOI, ORCID iD, ISBN or arXiv ID |
resolve | boolean | true | Look up metadata online (Crossref / ORCID / arXiv) |
Example request
ORCID check digit (offline)
curl -X POST https://citeshape.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"identifier":"https://orcid.org/0000-0002-1825-0097","resolve":false}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://citeshape.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
citeshape - Local stdio connector:
node src/mcp-stdio.ts --tool=citeshape
{
"mcpServers": {
"citeshape": { "type": "http", "url": "https://citeshape.usefulweb.site/mcp" }
}
}