In Claude Desktop integrieren
Bearbeiten Sie die Konfiguration, damit Claude Ihren Server lädt.
In Claude Desktop integrieren ist eine kostenlose MCP Academy-Lektion auf CoddyKit. Dies ist Lektion 2 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des MCP Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der MCP Academy-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
From Script to Real Host
Your server runs, but nobody is talking to it yet. Let’s connect it to a real host: Claude Desktop. 🖥️
It Reads a Config File
Claude Desktop discovers servers from one JSON file named claude_desktop_config.json. You list each server there, and it loads them on start.
Where the File Lives
On macOS the file sits under Application Support; on Windows it lives in your AppData roaming folder. Open it from the app’s settings.
~/Library/Application Support/Claude/claude_desktop_config.jsonThe mcpServers Key
Every server goes inside the top-level mcpServers object. Each key is the name you choose; the value describes how to launch it.
{
"mcpServers": {}
}Command and Args
For each server you give a command to run and an array of args. Together they are exactly how the host spawns your process.
{
"weather": {
"command": "python",
"args": ["/abs/path/server.py"]
}
}Use Absolute Paths
The host launches from its own working directory, so relative paths break. Always point args at an absolute path to your script.
uv Makes It Cleaner
If your project uses uv, set the command to uv and let it run your module in the right environment, no global install needed.
{
"command": "uv",
"args": ["run", "server.py"]
}Pass Environment Variables
Secrets like API keys go in an optional env object. The host injects them when it starts your server, so they stay out of code.
"env": { "API_KEY": "sk-..." }Restart to Apply
Claude reads the config only at launch. After any edit you must fully restart the app for it to pick up your new server.
The Hammer Icon
When it works, a small tools indicator appears in the chat. Clicking it shows the tools your server now offers Claude. 🔨
Name It Carefully
The key you choose under mcpServers becomes the server’s name. Keep it short and unique so multiple servers never clash in the host.
Quick Check
What change does Claude Desktop need before it will load a newly added server?
Recap
You added your server to claude_desktop_config.json with a command, args, and env, used absolute paths, and restarted. It’s live in Claude! ✅
Häufig gestellte Fragen
Ist die Lektion „In Claude Desktop integrieren“ kostenlos?
Ja — der vollständige Text von „In Claude Desktop integrieren“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des MCP Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der MCP Academy-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „In Claude Desktop integrieren“?
Bearbeiten Sie die Konfiguration, damit Claude Ihren Server lädt. Du übst MCP Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um MCP Academy zu starten?
Keine Vorkenntnisse erforderlich. MCP Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 2 von 4.
Wie lange dauert die Lektion „In Claude Desktop integrieren“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser MCP Academy-Lektion Code schreiben und ausführen?
Ja. Jede MCP Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Funktionsweise des stdio-Transports
- In Claude Desktop integrieren
- Mit dem MCP Inspector erkunden
- Einen Server debuggen, der nicht startet