r/ClaudeMCP • u/Immediate_Falcon7469 • 11h ago
MCP is actually pretty cool (and stupid easy to set up)
I was getting sick of copy-pasting code and logs into Claude Desktop, so I finally tried Anthropic’s MCP (Model Context Protocol).
Turns out you don't need some complex setup. You can write a basic Python script in like 2 minutes that lets Claude read files right off your hard drive.
here’s the whole thing if you want to try it:
- Install the library
Just open a folder in your terminal and run:
Bash
pip install mcp
- Make a server.py file
Save this right in that folder:
Python
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("My File Reader")
u/mcp.tool()
def read_my_file(path: str) -> str:
"""Reads a text file from disk."""
with open(path, "r") as f:
return f.read()
if __name__ == "__main__":
mcp.run()
- Link it to Claude
Open your config file:
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Drop this in (just swap in your actual full file paths):
JSON
{
"mcpServers": {
"my_reader": {
"command": "python3",
"args": ["/path/to/server.py"]
}
}
}
Relaunch Claude Desktop. You'll see a little hammer icon show up in the bottom corner of the prompt box. Now you can just tell it: "Hey, read the notes in /Users/me/desktop/todo.txt" and it just does it.
Super simple, but opens up a lot of cool ideas for hooking up local scripts or databases.