6 Steps Using Claude’s Model Context Protocol (MCP) with External Tools
- Rifx.Online
- Programming , Technology , Security
- 26 Dec, 2024
Enhance Claude Desktop’s Capabilities by Integrating GitHub and Brave Search via MCP
The Model Context Protocol (MCP) is an open standard developed by Anthropic that enables AI models like Claude to securely interact with various data sources and tools.
By setting up MCP servers, you can extend Claude’s capabilities to access local files, databases, and external services such as GitHub and Slack. This integration enhances Claude’s functionality, allowing it to perform tasks like querying databases, managing files, and interacting with web services directly from your desktop environment.
Key Features of Claude MCP:
- Secure Data Access: MCP ensures that AI models access data securely, maintaining user control over what information is shared.
- Extensibility: Developers can create custom MCP servers to connect Claude with various data sources and services.
- Standardized Protocol: MCP provides a unified protocol for integrating different resources, simplifying the development process.
Getting Started with Claude MCP: A Step-by-Step Tutorial
To leverage Claude’s enhanced capabilities through MCP, follow these steps:
1. Download Claude Desktop
2. Create the config.json
Execute the following Commands:
open ~/Library/Application\ Support/Claude
touch ~/Library/Application\ Support/Claude/claude_desktop_config.json
3. Available MCP servers
Here are the list of available MCP servers
🌟 Featured Servers
- Filesystem — Secure file operations with configurable access controls
- GitHub — Repository management, file operations, and GitHub API integration
- GitLab — GitLab API, enabling project management
- Git — Tools to read, search, and manipulate Git repositories
- Google Drive — File access and search capabilities for Google Drive
- PostgreSQL — Read-only database access with schema inspection
- Sqlite — Database interaction and business intelligence capabilities
- Slack — Channel management and messaging capabilities
- Sentry — Retrieving and analyzing issues from Sentry.io
- Memory — Knowledge graph-based persistent memory system
- Puppeteer — Browser automation and web scraping
- Brave Search — Web and local search using Brave’s Search API
- Google Maps — Location services, directions, and place details
- Fetch — Web content fetching and conversion for efficient LLM usage
4. Update claude_desktop_config.json
Grab the Brave Search or GitHub MCP basd on your needs.
Update the Config (this example shows it for GitHub)
- GitHub MCP — https://github.com/modelcontextprotocol/servers/tree/main/src/github
- Brave MCP: https://github.com/modelcontextprotocol/servers/tree/main/src/brave-search
5. Restart Claude Desktop
After saving the configuration file, restart Claude Desktop to apply the changes.
Open Claude Desktop: Start a new conversation and verify the MCP tools show.
Test MCP Server: Ask Claude to perform an action related to the configured MCP server, such as listing the current Bitcoin price that entails web search.
If configured correctly, Claude should interact seamlessly with the specified resources.
6. Troubleshooting Tips
Check that node is installed:
node - version
If not installed, download from https://nodejs.org/
brew update
brew install node
bode -v
Further tips
- Check Server Status: Ensure the MCP server is running and accessible.
- Verify Environment Variables: Confirm that all necessary environment variables are correctly set in the configuration file.
- Review Logs: Check Claude Desktop logs for error messages to identify issues.
By following this tutorial, you can enhance Claude’s capabilities, allowing it to interact with various data sources and tools through the Model Context Protocol.
For a visual demonstration of setting up MCP with Claude Desktop, you might find this video helpful:
Hello and welcome! Thrilled you’re here. We share insights on Data, AI, Tech trends, and the Future. Thank you for being a part of this community!
🙏 **Before you go:**If you found value in this post, please clap and follow to stay updated! 👏
Discover more at: DemoHub.dev(Modern Data Tools) **& DaaiC.dev (**Data Analytics & AI Conferences), YouTube &LinkedIn