What is a Resource?
Resources are a way to expose data content — documents, files, database query results, or any structured information — to AI clients via the MCPresources/read method. Unlike tools (which execute actions), resources provide read-only content that the AI can reference.
Think of resources as:
- Documentation or knowledge base articles the AI should be aware of
- Real-time data from your database (e.g., product catalog, user list)
- Static configuration or reference content
- WordPress posts/pages exposed as MCP-readable content
Resource URI
Every resource has a unique URI that serves as its identifier. URIs follow a URI scheme:resources/read.
Resource Properties
| Property | Description |
|---|---|
| URI | Unique identifier for the resource (e.g., docs://intro) |
| Name | Human-readable display name |
| Description | What the resource contains; used by AI for discovery |
| MIME Type | Content type (e.g., text/plain, application/json, text/markdown) |
| Data Source Type | Where the content comes from |
| Template URI | URI template for parameterized resources |
Data Source Types
| Type | Description |
|---|---|
static | Hardcoded content defined directly in GetMCP |
url | Fetched from an external URL on each read |
wp_query | Generated from a WordPress query (posts, pages, etc.) |
dynamic | Custom dynamic source via WordPress hooks |
Static Resources
The simplest type. You define the content directly in the editor and it never changes unless you update it:URL Resources
Content is fetched from an external URL each time the resource is read. Useful for:- Live documentation sites
- External data feeds
- Remote JSON config files
WordPress Query Resources
Query your own WordPress database and expose the results as a resource. For example:- All published blog posts (title + excerpt)
- WooCommerce products (name, price, SKU)
- Custom post types
- User lists
Resource Templates
Resource templates allow parameterized resources using URI templates (RFC 6570):resource://products/123 and receive data specific to product 123.
Creating a Resource
Set MIME Type
Choose the appropriate MIME type for your content (
text/plain, text/markdown, application/json, etc.).
MCP Protocol
Resources integrate with the standard MCP protocol methods:resources/list— Returns all resources for the server (URI, name, description, MIME type)resources/read— Returns the content of a specific resource by URIresources/templates/list— Returns available URI templates