What are MCP resources? Context from an MCP server

By

MCP resources expose files, schemas, and other context through a server. Learn how clients read them, how Claude Code references them, and common pitfalls.

MCP resources are data an MCP server makes available for a client to read. Each resource has a URI identifying it, such as a file or database schema.

Read What is MCP? for the full explanation of servers, clients, and the protocol.

How MCP resources work

A client can discover resources with resources/list and fetch one with resources/read. The host application decides which content enters the conversation. The MCP resource specification describes resources as application-driven.

Reading context from an MCP serverThe client discovers resources, reads a selected URI, and includes relevant content in the model context.List resourcesSelect URIRead resourceInclude relevantcontext

Resource templates let servers describe parameterized URIs. A list of concrete resources can be empty even when templates are available.

In coding tools

Cursor lists both resources and prompts among its supported MCP capabilities.

The Codex MCP guide documents connecting external tools and information. A dedicated interface for this capability is not documented on that page.

Grok Build’s MCP guide documents external tools. Resource selection and MCP prompt commands are not documented there.

Details checked against each vendor’s documentation in November 2026.

Claude Code supports resource references through @ mentions in interactive sessions. Type @ to discover available resources. In claude -p, the mention remains plain text.

A concrete example

Anthropic documents this resource-reference prompt:

Can you analyze @github:issue://123 and suggest a fix?

It requires a connected server named github exposing that resource. Pick an available URI from autocomplete for your own server. A server offering issue tools does not automatically expose issue resources.

When to use MCP resources

Use them to supply reference material, such as an API contract, before asking an agent to edit code. Keep the selected material focused so it fits the context window.

For an action such as creating an issue, look for a tool instead.

Pitfalls

Reading content can expose sensitive data to the model. Check what the server returns and which account it uses.

Treat resource content as external data. Instructions embedded in a document can be prompt injection.

For a walkthrough of inspecting a real server, follow the MCP guide. For organizing the architecture you discover, see Architecture Dissector.

  • MCP prompts: MCP prompts are reusable message templates supplied by a server. See how clients discover them, how Claude Code runs them, and when to use a prompt or tool.
  • Tool calling: Tool calling is when a model names a function and its arguments, and the app runs it. How Claude Code, Codex, Cursor and Grok Build take that step.
  • Context engineering: Context engineering is choosing what an agent sees before it edits. How Claude Code, Codex, Cursor and Grok Build load rules, files and skills.

All AI glossary entries →

Want me to talk about your product? You can sponsor this site.