Podłączanie do Claude Desktop
Edytuj konfigurację, aby Claude wczytał Państwa serwer.
Podłączanie do Claude Desktop to bezpłatna lekcja MCP Academy na CoddyKit. To lekcja 2 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej MCP Academy, a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs MCP Academy zawiera 4 lekcji w sumie.
Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.
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! ✅
Często zadawane pytania
Czy lekcja „Podłączanie do Claude Desktop” jest bezpłatna?
Tak — pełny tekst „Podłączanie do Claude Desktop” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu MCP Academy, przejdź na CoddyKit PRO. Kurs MCP Academy zawiera 4 lekcji w sumie.
Co nauczysz się w „Podłączanie do Claude Desktop”?
Edytuj konfigurację, aby Claude wczytał Państwa serwer. Ćwiczysz MCP Academy z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.
Czy potrzebuję doświadczenia, aby zacząć MCP Academy?
Nie wymagamy żadnego doświadczenia. MCP Academy w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 2 z 4.
Ile czasu zajmuje lekcja „Podłączanie do Claude Desktop”?
Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.
Czy mogę pisać i uruchamiać kod w tej lekcji MCP Academy?
Tak. Każda lekcja MCP Academy zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.
Wszystkie lekcje w tym kursie
- Jak działa transport stdio
- Podłączanie do Claude Desktop
- Eksploracja za pomocą MCP Inspector
- Debugowanie serwera, który nie chce się uruchomić