Table of Contents
What Is the Best MCP Feature for Exposing Document Contents?
Learn why MCP Resources are the best feature for exposing read-only document contents to AI clients, allowing users to reference files directly in their prompts.
Question
You’re building a document system where users can type @document_name to reference files. What MCP feature is best for exposing the document contents?
A. Tools
B. Clients
C. Prompts
D. Resources
Answer
D. Resources
Explanation
In the Model Context Protocol (MCP), Resources are the primary feature designed to expose read-only data and content to AI clients. They act similarly to a file system, allowing users to seamlessly reference specific files or documents by URI (such as using an @document_name syntax in supported clients) so the AI can read and use that content as context.