---
title: "Discussion on \"llms.txt and MCP for API Docs: How AI Coding Assistants Read Your API\" | Hashnode"
description: "Discussion on \"llms.txt and MCP for API Docs: How AI Coding Assistants Read Your API\". How to write an llms.txt for an API, with a real example, and when to add an MCP server so Cursor and Claude Code read your endpoints."
url: "https://hashnode.com/posts/llms-txt-and-mcp-for-api-docs-how-ai-coding-assistants-read-your-api/6b1382fc78c73531b435430e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [llms.txt and MCP for API Docs: How AI Coding Assistants Read Your API](https://specway.hashnode.dev/llms-txt-and-mcp-for-api-docs-how-ai-coding-assistants-read-your-api?utm_source=hashnode&utm_medium=feed)

How to write an llms.txt for an API, with a real example, and when to add an MCP server so Cursor and Claude Code read your endpoints.

23h ago · 8 min read · specway.hashnode.dev  
Read the article

-   [#mcp](https://hashnode.com/tag/mcp)
-   [#api](https://hashnode.com/tag/api)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#documentation](https://hashnode.com/tag/documentation)

## Written by

[Specway](https://hashnode.com/@specway)

@specway

  
[View profile](https://hashnode.com/@specway)

Specway, API docs from your spec

Founder of Specway: API docs from your OpenAPI spec, for developers and AI agents. I write about OpenAPI, breaking changes, llms.txt and MCP. specway.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
