Brief IA

Claude and MCP: Simplified Integration for Optimal Collaboration

🛠️ AI Tools·Tom Levy·

Claude and MCP: Simplified Integration for Optimal Collaboration

Claude and MCP: Simplified Integration for Optimal Collaboration
Key Takeaways
1Claude can now interact with MCP servers, expanding its capabilities beyond simple chat.
2Connecting with Claude Desktop and Claude Code requires a few simple steps to set up.
3This integration allows Claude to access external tools, files, and databases.
💡Why it mattersThe integration of Claude with MCP enhances its utility in business, facilitating access to diverse resources and optimizing productivity.
Le brief IA que lisent les pros

Le brief IA que les pros lisent chaque soir

Les 7 actus IA du jour, décryptées en 5 min. Gratuit.

Inclus dès l'inscription : notre sélection des meilleurs guides & comparatifs IA.

Choisis ton rythme

Gratuit · Pas de spam · Désabonnement en 1 clic

📄
Full Analysis

Claude and MCP: Simplified Integration for Optimal Collaboration

What is MCP and Why is it Important?

MCP (Model Context Protocol) is the universal connection layer that allows any AI model to communicate with external tools via a standardized interface, eliminating the need for custom integration code for each combination.

Before MCP, connecting Claude to GitHub required a custom integration. Another was needed for Slack, and a third for your database. Anthropic referred to this as the "N×M problem": N AI models multiplied by M external tools meant N×M custom connectors. MCP solves this issue by transforming it into N+M. Build an MCP server for GitHub, and every MCP-compatible AI client, like Claude, Cursor, Windsurf, and many others, can use it immediately.

How MCP Works in 3 Simple Parts

Understanding the three-part architecture takes 2 minutes and avoids 90% of the confusion during setup.

  • Example in Claude: The AI application with which the user interacts, manages context, security, and available servers.

  • Claude Desktop, Claude Code, Cursor: Resides within the host. Manages protocol-level communication with each MCP server.

  • An external process that exposes tools, resources, or prompts to the AI via MCP.

When you ask Claude to "check my open PRs on GitHub," here's what happens behind the scenes:

  1. Claude identifies that it needs an external tool to fulfill the request.

  2. The MCP client in Claude sends a JSON-RPC request to the GitHub MCP server.

  3. The server queries the GitHub API and returns structured data.

  4. Claude integrates this data into its context and generates your response.

The entire process takes less than a second. You never see the behind-the-scenes work.

Claude Desktop: Step-by-Step MCP Setup

Claude Desktop reads its MCP configuration from a single JSON file. There are two ways to install servers: the new Desktop Extensions with one-click (.mcpb) and the traditional JSON configuration method. Use Extensions for supported servers; use JSON configuration for anything custom.

Method 1: Desktop Extensions (One Click, No JSON)

Since early 2026, Claude Desktop supports Desktop Extensions, pre-packaged MCP servers distributed as .mcpb files. These can be installed with a double-click. No JSON editing, no Node.js path issues.

  • Open Claude Desktop.

  • Click the "+" button at the bottom left of the chat entry.

  • Select "Connectors" to open the connectors menu.

  • Find your server (e.g., GitHub, Google Drive) and click Install.

  • Restart Claude Desktop. The server activates automatically.

Desktop Extensions are ideal for non-technical users or for servers you want to "set and forget." The JSON configuration method below is suitable for custom servers, private servers, or complete control over arguments and environment variables.

Method 2: JSON Configuration (Full Control)

Claude Desktop reads its MCP configuration from claude_desktop_config.json. The file location depends on your operating system:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

The file location on Windows depends on how you installed Claude Desktop, which can be confusing. There are two completely different locations:

  • Direct .exe Installer: %APPDATA%\Claude\claude_desktop_config.json

  • Installation via Microsoft Store, WinGet, or MSIX: %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json

If %APPDATA%\Claude does not exist on your machine, you likely have the Store/MSIX installation, and your actual file is in this more complex location.

If neither path has the file yet, open Claude Desktop, go to Settings → Developer → Edit Configuration. This creates the file at the location used by your specific installation.

A Windows-specific caveat: paths inside the JSON must use double backslashes. For example, C:\Users\yourname\Documents in a JSON string should be written as C:\\Users\\yourname\\Documents.

Editing the Configuration File

Open Claude Desktop → top menu bar → Settings → Developer → Edit Configuration. This opens the file in your default editor and creates it if it does not exist.

The file has a single top-level key, mcpServers. Think of it as a list of servers you want Claude to know about. Each server has its own entry in this list, and you choose the name you want for this entry (like "filesystem" or "github").

Within each server entry, you can define three things:

  • command: the actual program that Claude runs to start this server (usually npx, as most servers are distributed as npm packages).

  • args: the list of arguments passed to this command, exactly as you would type them in a terminal.

  • env: any environment variables the server needs, most often API keys or access tokens.

Here’s a practical startup configuration example for a developer workflow: filesystem access, GitHub integration, and web search.

What Happens in Each of the Three Servers

  • filesystem: does not need credentials, so it only has command and args. The args list tells npx which package to run.

  • github: requires you to prove your identity to the GitHub API, so it has an additional env block. GITHUB_PERSONAL_ACCESS_TOKEN is where you paste your own GitHub token.

Obtaining a GitHub Token, Step by Step

  1. Go to github.com and log in. Click on your profile picture in the top right, then on Settings.

  2. In the left sidebar, click on Developer settings.

  3. Click on Personal access tokens, then on Fine-grained tokens, and then on Generate new token.

  4. Give it a name (something memorable, like "claude-mcp"), and set an expiration.

  5. Under Resource owner, choose your personal account (or the organization whose repositories you need).

  6. Under Repository access, choose Only selected repositories and select only those that Claude actually needs.

  7. Under Permissions, grant only what you will use.

  8. Click on Generate token at the bottom, then copy it immediately.

This token (which starts with github_pat_) is what replaces "ghp_your_token_here" in the JSON configuration above.

Brief IA — L'actualité IA en français

L'essentiel de l'actualité de l'intelligence artificielle, décrypté et expliqué chaque jour.