MCP resources

MCP resources are pieces of data that an MCP server makes available for a client to read, such as files, database rows or API responses. Each resource has a URI.

How it works

The client asks the server for a list of resources and reads the ones it needs by URI. A server can also offer templates for resources that take parameters, and a client can subscribe to be told when a resource changes. The application decides which resources go into the model’s context. That is the difference with tools, which the model calls itself.

Why it matters

Resources give a model context without giving it an action. Reading a document is lower risk than calling a tool that changes something, so the two can be governed differently.

Where a gateway fits

Not every MCP client or MCP gateway handles resources yet. Many focus on tools first, so check support before you build on them.

Related terms

Further reading