Claude MCP Setup Guide: How to Use Claude Tool with Model Context Protocol (MCP)

Learn Claude MCP Setup with this complete guide. Understand what Model Context Protocol (MCP) is, how Claude connects to GitHub, databases, files, APIs, and how to install and configure MCP servers.

https://images.openai.com/static-rsc-4/UmTyXf0dMZu4DQ0jrnR9D4vJIR8xBBnjc_uYLE3EayR6Ju87JhM7b1U2GJfhfPIxuIZUL-6gFMJXiBWNjHLdnNJFm1pox2DkPKh5gOAeTC151OkMzqPQxBIGpW8rCw9HeGwXSdjm2G2C_1gTAuCeOgpjXbFPwaJuiMW0MAD4djHuKM9H7h0tx34smZ63Z0uT?purpose=fullsize
https://images.openai.com/static-rsc-4/rYDzugQlFefu1e4eu30afYGa_idRXw-Wf42_jQeiMWCBFxqeZ18A1DLICnOyJ6XeWLNmXLJ7lUSuBphVDuHnzEV_ufI3ZakcgotIpb3oZWW7iEQku-LrvddHYuVETWDyrxpfrWfcFNmaqurGMran7dPjeUwo1B1Ns410p-sCBz7RTMwDzNNbZwaDvow58H6T?purpose=fullsize
https://images.openai.com/static-rsc-4/V86fGMmzZRGakgJR_dfTDd9ZVa0c6x6wx-e7BokIq5TSLtPgk_Sdr_TsfiEcCekj2aGiSfjjdRJaw9CAqNgITl1FP7IQgEpzXX8visVIz502fRODPnXLGLeP6uw1XTKSm4gDD8lGLy-hUZ_u4Dkg4OlVaU7zM7ymruWc9sb2P1-rEEmGU5yk6frVKrsWh54m?purpose=fullsize

What is MCP in Claude?

MCP = Model Context Protocol

It helps Anthropicโ€™s Claude connect with:

  • GitHub
  • Slack
  • Databases
  • Local files
  • Browsers
  • APIs
  • DevOps tools
  • External applications

Think of MCP like:

โ€œUSB-C for AI toolsโ€

Claude can directly use connected tools instead of only chatting.

How Claude + MCP Works:

https://images.openai.com/static-rsc-4/E62u7_cIp_eUml69sOoUPyhlbuMOCyzDW3Bbe8RbKCiccngkLUv7U22OAzm18PLLq6FsBTQxLx7UcefjlLBptKCAxJ3Exf3Gd_mZKp53rw8uTsvwIEjCPty-Xey0sFc00BFc6jnCzmhgS9yvPfZDOxd4-qj_eTXYYBf1Cjwt3TPrInD3N6pqsYuH1AeL61aY?purpose=fullsize
https://images.openai.com/static-rsc-4/Lnjw5Qf5BRtF8MSZve8sieFKTX-_KxJIiafH8MpvHyNK7YgvRK2S8aPKoUapmD5eNczb1vYurmZg_kp07rt2arcDT18IaoTv8fBeoItPpzLdP1pKe99JANstJ1e5B2zGiSK5d5j6A4S2avspnc4Q2m7Nup9XnHxSjcL52FGWF5E928_DeAh5AW1bUYPzRs37?purpose=fullsize
https://images.openai.com/static-rsc-4/tLLteEBCz7T0vrvtxIj8n3eTUTM4VxDXIVdsS81GQ-yyXkTL9iw5Cc6aw-UGrSRcUZ6rYMsP_ZnvqDfDwIEHtC5ikjfS7yIg7K11ICq-Ic2xjHPwKI88oPwch5u6LdyD0Iu88qHUf9hFuDQLEySd3Z9nhkMlN5hPpk9p4a_ShmeoTA5bOg-7lhRuNCN5Sn9P?purpose=fullsize

Architecture:

Claude (Host)
โ†“
MCP Client
โ†“
MCP Server
โ†“
External Tool/API

Example:

  • Claude โ†’ GitHub MCP โ†’ Create PR
  • Claude โ†’ Browser MCP โ†’ Open website
  • Claude โ†’ Filesystem MCP โ†’ Read files
  • Claude โ†’ PostgreSQL MCP โ†’ Query database

Requirements :

Before setup install:

ToolPurpose
Claude Desktop OR Claude CodeMain AI tool
Node.jsRun MCP servers
Python (optional)Python-based MCP servers
Internet connectionTool access

Step 1 โ€” Install Claude Desktop

Step 2: Login to Claude

Run:

claude

It will open browser authentication.

Step 3: Install MCP Server

Example 1 โ€” Filesystem MCP

This lets Claude access local files.

Install:

claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem ~/Desktop

Now Claude can:

  • Read files
  • Create files
  • Modify files

Example 2 โ€” GitHub MCP

claude mcp add github \
--env GITHUB_TOKEN=your_token \
-- npx -y @modelcontextprotocol/server-github

Claude can now:

  • Create PRs
  • Read repos
  • Check issues
  • Commit code

Step 4: Verify MCP Servers

List MCP servers:

claude mcp list

Get details:

claude mcp get filesystem

Remove server:

claude mcp remove filesystem

Step 5: Start Using Claude with MCP

Run:

claude

Now ask prompts like:

Check GitHub PR status

Read file etc…

all other commands….

MCP Architecture

Claude Code
โ”‚
โ–ผ
MCP Client
โ”‚
โ–ผ
MCP Server
โ”‚
โ–ผ
External Tool/API

Mahesh Wabale

Leave a Comment