A simple tutorial on how to make an MCP server.
- Resources: File-like data that can be read by clients (like API responses or file contents)
- Tools: Functions that can be called by the LLM (with user approval)
- Prompts: Pre-written templates that help users accomplish specific tasks
uv sync
uv run weatherClaude Config:
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsonAdd the following:
Run which uv to find the absolute path to the uv command.
{
"mcpServers": {
"weather": {
"command": "/Users/russell/.local/bin/uv",
"args": [
"--directory",
"/Users/russell/Documents/hello-mcp-server",
"run",
"weather"
]
}
}
}