Why I Kept Copy-Pasting Everything Into Claude
For a while, my workflow with Claude looked embarrassing in hindsight. Every time I wanted help with something — a config file, a database schema, a log snippet — I'd manually copy the content, paste it into the chat window, and then ask my question. It worked, sort of, but it felt like faxing documents when email exists.
Then I started actually reading the MCP spec and stumbled across something called Resources. Not tools, not prompts — Resources. And once I understood what they do, that copy-paste habit disappeared pretty quickly.
This article walks you through exactly what MCP Resources are, how they differ from MCP Tools, and how to start using them so Claude can read the live data it needs without you acting as a human clipboard.
MCP Resources vs MCP Tools: The Key Difference
If you've already poked around with MCP a little, you know that Tools let Claude do things — run a search, write a file, call an API. Resources are different. Resources let Claude read things. They're essentially named, addressable pieces of content that Claude can pull into its context window on demand.
Think of it this way: a Tool is a verb. A Resource is a noun. When Claude calls a tool, something happens. When Claude reads a resource, it gets information. Both are useful, but they serve completely different purposes.
Resources are identified by URIs — simple addresses like file:///project/config.json or db://customers/schema — and they can represent almost anything: local files, database rows, API responses, log streams, even generated content.
Two Types of Resources You Should Know About
MCP actually distinguishes between two flavors of resources, and knowing the difference saves a lot of confusion.
Static Resources have a fixed URI and return the same content every time (or at least content that doesn't change very often). Your project's README, a config template, a list of environment variables — these are good candidates for static resources.
Dynamic Resources (also called Resource Templates) use URI templates with parameters. So instead of hardcoding a specific file path, you expose a pattern like logs://{date}/errors and Claude can request the error log for any date by filling in that parameter. This is where things get really powerful because Claude can reason about which resource it needs and request the right one.
Static vs Dynamic in Plain English
Static resource = a specific book on a shelf. Dynamic resource template = a whole library where you describe what you want and get the right book back.
What a Resource Definition Actually Looks Like
Let's make this concrete. Here's what defining a simple static resource looks like inside an MCP server written in Python. Don't worry if you haven't built an MCP server before — the structure is readable even if you're just starting out.
# A simple static resource that returns your app config
@server.list_resources()
async def list_resources():
return [
Resource(
uri="file:///app/config.json",
name="App Config",
description="Current application configuration",
mimeType="application/json"
)
]
@server.read_resource()
async def read_resource(uri: str):
if uri == "file:///app/config.json":
with open("/app/config.json") as f:
return f.read()Two handlers. That's really it. list_resources tells Claude what's available. read_resource returns the content when Claude asks for a specific URI. Claude can then say "I see a resource called App Config — let me read that before I answer your question."
Dynamic Resource Templates: Where It Gets Interesting
Now here's the part that actually made me excited when I first got it working. Resource templates use URI template syntax (like {variable} placeholders) so Claude can construct the exact URI it needs based on context.
# A dynamic resource template for log files by date
@server.list_resource_templates()
async def list_resource_templates():
return [
ResourceTemplate(
uriTemplate="logs://{date}/errors",
name="Error Logs by Date",
description="Fetch error logs for a specific date (YYYY-MM-DD)",
mimeType="text/plain"
)
]
@server.read_resource()
async def read_resource(uri: str):
if uri.startswith("logs://"):
date = uri.split("/")[2]
return fetch_logs_for_date(date) # your function hereNow when you ask Claude "what errors happened yesterday?", it can look at the available resource templates, figure out it should request logs://2025-07-14/errors, read that content, and give you a real answer based on your actual log data — without you doing anything manually.
Resource Content Types: Text and Binary
Resources can return two content types: text and binary (blob). Text resources are the most common — JSON configs, markdown docs, SQL schemas, log files. They come back as a plain string Claude can read and reason about directly.
Binary resources return base64-encoded data, which is useful if you're exposing images, PDFs, or other non-text content. Claude Desktop can actually display images returned as binary resources, which is a nice touch if you're exposing screenshots or generated charts.
The mimeType field you saw in the examples above is how the client knows which is which. Set it correctly and everything just works.
Use Descriptive Names and Descriptions
Claude decides whether to read a resource partly based on its name and description. Vague names like "Resource 1" mean Claude won't know when to use it. Write descriptions like you're explaining to a colleague what the resource contains and when it's useful.
Resource Subscriptions: Staying Up to Date
One thing that surprised me about the MCP Resources spec is that it also supports subscriptions. If your server implements it, Claude can subscribe to a resource URI and get notified when the content changes — kind of like a live feed rather than a one-time read.
This isn't something every MCP server needs, but if you're exposing something that updates frequently (like a metrics dashboard or a build status feed), subscriptions let Claude stay aware of changes throughout a conversation rather than reading stale data from the first request.
For beginners, I'd skip subscriptions at first and just get static and template resources working. But it's good to know the capability exists when you're ready for it.
Three Practical Things You Can Expose as Resources Today
Once you understand the concept, you start seeing resource opportunities everywhere. Here are three I actually use:
1. Your project's database schema. Instead of pasting your entire schema into every conversation, expose it as a resource at something like db://schema. Claude reads it at the start of a session and knows exactly what tables and columns exist. No more "here's my schema, please help me write this query."
2. Environment-specific config files. Expose your .env.example or a sanitized version of your app config. When you ask Claude to help you debug a configuration issue, it can actually see the values rather than guessing.
3. Recent git commits or changelogs. Wire up a resource that returns the last 20 git commits as text. When you ask Claude "why might this feature be broken?", it can read recent changes and give you much more targeted answers.
Never Expose Secrets as Resources
Resources get read into Claude's context window. That means API keys, passwords, and private tokens should never be exposed as resource content. Sanitize configs before exposing them, and use environment variable placeholders instead of real values.
The Big Picture: Resources Make Claude Context-Aware
Here's the mental model I keep coming back to. Without MCP Resources, Claude is like a very smart consultant you've hired who shows up to every meeting with no background on your project. You have to brief them from scratch each time. With Resources, that consultant has access to your shared drive. They can pull up the files they need, read the relevant docs, and show up actually prepared.
That shift — from Claude knowing only what you paste into the chat, to Claude being able to reach for the information it needs — is what makes MCP Resources worth learning. It's not a complicated concept. Two handlers, a URI scheme, and a decent description field. But the productivity difference once it's working is real.
Start with one static resource. Something simple, like your project README or a config file. Get that working in Claude Desktop, ask Claude a question that should trigger it to read that resource, and watch it actually happen. That first moment when Claude pulls in live data you didn't have to paste is surprisingly satisfying.
From there, add a template or two. Before long, you'll have a setup where Claude genuinely knows your project — not because you briefed it, but because you gave it access to the right resources.
More tutorials in this category, or explore the full field guide.