Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mtaapi.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

These docs are built to be consumed by AI tools, not just people. Every page is available in machine-readable form, plus there’s a hosted MCP server and an installable Claude skill — all generated and kept up to date automatically, at no extra cost. Point your agent at any of the endpoints below to give it grounded, current knowledge of the mta-js SDK and the MTA API.

MCP server

Connect Cursor, Claude, Codex, VS Code, and other MCP clients to search these docs live.

llms.txt

A machine-readable index of every page, for AI tools to discover and navigate.

skill.md

Install these docs as a Claude skill in Claude Code and Claude Desktop.

Markdown pages

Append .md to any docs URL to get the raw Markdown of that page.

MCP server

The docs are exposed as a hosted Model Context Protocol (MCP) server, so AI clients can search and read the documentation as a tool — answering questions about the SDK and API with up-to-date context. It exposes a search tool and a filesystem-style navigation tool over the docs. Server URL
https://mtaapi.dev/docs/mcp
Add the server to ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project:
{
  "mcpServers": {
    "mta-api": {
      "url": "https://mtaapi.dev/docs/mcp"
    }
  }
}
Once connected, ask your assistant things like “How do I fetch a subway arrival board with mta-js?” and it will pull answers straight from these docs. A discovery endpoint is also published at /.well-known/mcp so compatible tools can locate the server automatically.

llms.txt

Following the llms.txt standard, two machine-readable files are generated automatically and stay in sync with these docs:
FileURLContents
llms.txthttps://mtaapi.dev/docs/llms.txtA structured index of every page with titles, links, and descriptions — a sitemap for LLMs.
llms-full.txthttps://mtaapi.dev/docs/llms-full.txtThe entire documentation site concatenated into one file for direct context loading.
Use llms.txt when a tool should discover and fetch only the relevant pages, and llms-full.txt when you want to drop the whole corpus into a model’s context window.

Claude skill

These docs are also published as an installable Claude skill, described by a skill.md manifest that summarizes the SDK’s capabilities, methods, and best practices for agents:
https://mtaapi.dev/docs/skill.md
Add it to any agent that supports the agent skills spec with the skills CLI:
npx skills add https://mtaapi.dev/docs
This loads the MTA API capabilities into the agent’s context so it can reference the guides and reference material on demand while you work. MCP-compatible tools can also read the skill.md content directly.

Markdown for any page

Every page is available as raw Markdown — just append .md to its URL. For example:
https://www.mtaapi.dev/docs/guides/subway-arrivals.md
This is handy for piping a single page into a prompt or script without any HTML.
All of the above — the MCP server, llms.txt, llms-full.txt, skill.md, and per-page Markdown — are generated and hosted automatically. There’s nothing to configure and no extra cost.