Terug naar podcastsClaude
Claude Code 101
MCP in Claude Code
Model contact protocol is an open standard that lets Claude code connect to external tools and data sources.
Model Context Protocol is een open standaard waarmee Claude Code verbinding kan maken met externe tools en databronnen.
[music]
[music]
When you ask a question, Claude will automatically understand when it should use those tools to better understand your query.
Wanneer je een vraag stelt, begrijpt Claude automatisch wanneer het die tools moet gebruiken om je vraag beter te begrijpen.
Context is one of the most important parts when working with Claude code.
Context is een van de belangrijkste onderdelen bij het werken met Claude Code.
A lot of your context lives elsewhere like your databases, your productivity apps, or [music] in public repositories.
Veel van je context bevindt zich elders, zoals in je databases, je productiviteitsapps, of [music] in publieke repositories.
This is where MCP comes [music] in.
Dit is waar MCP [music] om de hoek komt kijken.
First, it's important to understand the concept of tools when talking about Agentic AI.
Allereerst is het belangrijk het concept van tools te begrijpen wanneer we over agentische AI praten.
Tools give agents like Claude code the ability to perform actions in order for them to better complete their tasks.
Tools geven agenten zoals Claude Code de mogelijkheid om acties uit te voeren zodat ze hun taken beter kunnen volbrengen.
This is different from other AI where you just get an output back directly in text usually.
Dit verschilt van andere AI waarbij je normaal gesproken eenvoudig een uitvoer direct in tekst terugkrijgt.
For example, if your team is using Linear as our project management software, you can add a Linear MCP server to bring in the details of your specific issues.
Als je team Linear gebruikt als projectmanagementsoftware, kun je bijvoorbeeld een Linear MCP-server toevoegen om de details van je specifieke issues binnen te halen.
If you want to get up-to-date documentation of a dependency that you're working with, then the Context 7 MCP server will provide Claude code with that.
Als je up-to-date documentatie wilt krijgen van een afhankelijkheid waarmee je werkt, zal de Context 7 MCP-server dat aan Claude Code verstrekken.
There are also hundreds of different connectors at claude.com/connectors.
Er zijn ook honderden verschillende connectoren op claude.com/connectors.
You can add MCP servers with the Claude MCP add command.
Je kunt MCP-servers toevoegen met het commando Claude MCP add.
There are two main types.
Er zijn twee hoofdtypen.
HTTP servers are for remote services.
HTTP-servers zijn voor externe diensten.
These are hosted by the service provider and connect over the network.
Deze worden gehost door de serviceprovider en verbinden via het netwerk.
STDIO servers are for local processes that run on your machine.
STDIO-servers zijn voor lokale processen die op je machine draaien.
You can manage your servers with the /mcp inside a Claude code session to see what's connected, the status, and disable servers that you don't want to use.
Je kunt je servers beheren met /mcp binnen een Claude Code-sessie om te zien wat er verbonden is, de status, en servers uitschakelen die je niet wilt gebruiken.
MCP servers can be scoped in three different ways.
MCP-servers kunnen op drie verschillende manieren worden afgebakend.
One, local means it's only available in the current project for you.
Eén, local betekent dat het alleen beschikbaar is in het huidige project voor jou.
Two, the user, which means it's available across all your projects.
Twee, user, wat betekent dat het beschikbaar is in al je projecten.
And three, project scope uses a .mcp.json file that you check into your version control, so anyone working on the code base gets the exact same servers automatically.
En drie, de project-scope gebruikt een .mcp.json-bestand dat je incheckt in je versiebeheer, zodat iedereen die aan de codebase werkt automatisch dezelfde servers krijgt.
Now, one thing to be aware of is that MCP servers add tool definitions to your context window, even when you're not using them.
Een ding om rekening mee te houden is dat MCP-servers tooldefinities toevoegen aan je contextvenster, zelfs wanneer je ze niet gebruikt.
So, if you have a lot of servers configured, this eats into your available context.
Als je veel servers geconfigureerd hebt, vreet dit dus aan je beschikbare context.
Run the {slash} MCP command to see what's connected and disable anything that you're not actively using or don't think that you're going to use.
Voer het /mcp-commando uit om te zien wat er verbonden is en schakel alles uit wat je niet actief gebruikt of niet denkt te gaan gebruiken.
If a tool has a CLI equivalent like GH for GitHub or AWS for AWS, the CLI is more context efficient because it doesn't add persistent tool definitions.
Als een tool een CLI-equivalent heeft zoals gh voor GitHub of aws voor AWS, is de CLI efficiënter qua context omdat het geen persistente tooldefinities toevoegt.
You also might benefit from using a skill in this scenario.
Je kunt in dit scenario ook baat hebben bij het gebruik van een skill.
A skill has a name and a description that is loaded into context.
Een skill heeft een naam en een beschrijving die in de context wordt geladen.
Similar to MCP, when Cloud thinks it needs to use that skill, it then decides to load it into the context window, which is where you could put the command line interface tools.
Vergelijkbaar met MCP, wanneer Claude denkt dat het die skill nodig heeft, besluit het die in het contextvenster te laden, waar je de opdrachtregelinterfacetools kunt plaatsen.
If your MCP tools exceed 10% of your context window, Cloud code will automatically switch to tool search mode, which will discover the right tools on demand, but this might not work as well since it's just not in the
Als je MCP-tools meer dan 10% van je contextvenster beslaan, schakelt Claude Code automatisch over naar de tool-zoekmodus, die de juiste tools op aanvraag ontdekt, maar dit werkt mogelijk niet zo goed omdat ze gewoon niet in de context staan.
[music]
[music]
Now, a quick recap.
Nu een korte samenvatting.
MCP connects Cloud code to your external tools and data
MCP verbindt Claude Code met je externe tools en data
[music]
[music]
Add servers with Cloud MCP add, scope them to your project with .mcp.json so that your team gets them automatically, and keep an eye on the context usage by disabling servers [music] that you're not actively using.
Voeg servers toe met Claude MCP add, baken ze af op je project met .mcp.json zodat je team ze automatisch krijgt, en houd de contextgebruik in de gaten door servers [music] uit te schakelen die je niet actief gebruikt.