AI Hints
Home›MCP Tutorial›Real Hosts
MCP · Lesson 73 of 120

Claude Desktop

The config file.

⏱ 2 min read▶ Video at 1:04:53🎓 Free
Watch this lesson in the MCP courseWatch on YouTube ↗Full MCP course

So far our clients were Python scripts. Real users meet MCP inside hosts, like Claude Desktop. The host reads a config file, starts your server, and offers its tools in the chat.

Claude Desktop
From the video: Claude Desktop
  • Real hosts
  • A config file
  • Tools in the chat

claude_desktop_config.json

MCP servers is a map of names to servers. For a standard IO server, command and args say how to start it. Here, uv runs our server from its folder. Env sets environment variables for it.

claude_desktop_config.jsonjson
{
  "mcpServers": {
    "northwind": {
      "command": "uv",
      "args": ["run", "--directory", "/Users/sam/northwind", "northwind.py"],
      "env": {"FREE_FROM": "50"}
    }
  }
}

Using it

Open the file from the app's developer settings. Use full paths, because the host doesn't start in your folder. Restart the app after changes. Then the tools appear in the chat, and the app asks before using them.

keyvalue
Opendeveloper settings
Pathsalways full
After editsrestart the app
Tool useuser approves

Summary

Claude Desktop starts servers listed in its config file, with a command, arguments, and environment. Next, other hosts.

Key takeaways
  • mcpServers
  • command + args
  • env
Next up: Claude Code and Other Hosts — adding a server