Build Your Own AI Assistant with Claude and MCP
A step-by-step guide to setting up a Claude assistant that can read files, search the web, and connect to your tools.
Daniel Dahlen
February 26, 2026
What if Claude could read files on your computer. Search the web for you. Connect to your own systems.
It can. And it's easier to set up than you think.
This guide shows you how to build an AI assistant that can actually do things, not just answer questions. We'll use Claude Desktop and something called MCP (Model Context Protocol).
What We're Building
By the end of this guide, you'll have a Claude assistant that can:
- Read and write files on your computer
- Search the web for you
- Understand context from your local projects
You can then build on this with more tools as needed.
What is MCP?
MCP (Model Context Protocol) is a way for AI models to communicate with external tools. Think of it as adapters that give Claude new capabilities. Read more about agents and MCP in my article on AI agents explained.
Prerequisites
You'll Need
- Claude Desktop (Mac or Windows)
- Node.js installed (version 18 or later)
- A text editor (VS Code, or something else)
- A bit of courage to use the terminal
Install Claude Desktop
If you don't have it already:
- Go to claude.com/download
- Download for your operating system
- Install and log in with your Anthropic account
Install Node.js
If you don't have Node.js:
- Go to nodejs.org
- Download the LTS version
- Run the installer
Verify it works by opening the terminal and typing:
node --versionYou should see a version number.
Step 1: Find the Configuration File
Claude Desktop uses a JSON file to configure MCP servers. First we need to find it.
On Mac
The configuration file is at:
~/Library/Application Support/Claude/claude_desktop_config.json
You can open the folder by typing in the terminal:
open ~/Library/Application\ Support/Claude/On Windows
The configuration file is at:
%APPDATA%\Claude\claude_desktop_config.json
Open File Explorer and paste that path.
The file might not exist yet
If the file doesn't exist, create it. We'll add content in the next step.
Step 2: Install Your First MCP Server (Filesystem)
We'll start with the filesystem server. It lets Claude read and write files in folders you choose.
Install the Server
Open the terminal and run:
npm install -g @anthropic-ai/mcp-server-filesystemConfigure Claude
Open claude_desktop_config.json in your text editor and add:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@anthropic-ai/mcp-server-filesystem",
"/Users/yourname/Documents",
"/Users/yourname/Projects"
]
}
}
}Replace /Users/yourname/Documents and /Users/yourname/Projects with the folders you want Claude to access.
Security tip
Only give Claude access to folders you're comfortable sharing. Avoid your entire home directory or folders with sensitive information.
Restart Claude Desktop
Close Claude Desktop completely and open it again. MCP servers load at startup.
Test
Type something like:
Can you list the files in my Documents folder?
If everything works, Claude should be able to see and describe the contents.
Step 3: Add Web Search
Now let's add the ability to search the web. We'll use the Brave Search MCP server.
Get an API Key
- Go to brave.com/search/api
- Create an account
- Get an API key (free up to 2000 searches/month)
Install and Configure
Update your claude_desktop_config.json:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@anthropic-ai/mcp-server-filesystem",
"/Users/yourname/Documents",
"/Users/yourname/Projects"
]
},
"brave-search": {
"command": "npx",
"args": [
"-y",
"@anthropic-ai/mcp-server-brave-search"
],
"env": {
"BRAVE_API_KEY": "your-api-key-here"
}
}
}
}Replace your-api-key-here with your actual API key.
Restart and Test
Restart Claude Desktop. Test with:
Search the web for the latest news about AI agents
Claude should now be able to search and summarize results.
Step 4: Combine the Tools
Now you have an assistant that can both read local files and search the web. Try combining:
I have a project in /Users/yourname/Projects/my-app.
Can you read the README file and then search the web for
best practices for the framework the project uses?
Or:
Summarize the contents of all markdown files in my
Documents folder and create a new file with the summary.
Experiment!
The real power comes from combining tools. Think about tasks where you need both local information and external research.
More MCP Servers to Explore
Filesystem and search are just the beginning. Here are other MCP servers that might be interesting:
GitHub
Let Claude read and edit code in your repositories.
npm install -g @anthropic-ai/mcp-server-githubSlack
Let Claude read and send messages.
npm install -g @anthropic-ai/mcp-server-slackPostgreSQL
Let Claude query your database.
npm install -g @anthropic-ai/mcp-server-postgresFind more at the official MCP site.
Building Custom MCP Servers
If you have a technical background, you can build custom MCP servers to connect Claude to exactly the systems you want. It requires some coding but opens up unlimited possibilities.
MCP uses standardized JSON-RPC based communication. There are SDKs for Python and TypeScript that make it relatively easy to get started.
That's outside the scope of this guide, but the tip is to start by studying existing MCP servers as examples.
Security: What to Think About
Before giving Claude access to more tools:
Permissions
Only give access to what's needed. Avoid broad permissions like "the entire filesystem."
Sensitive Data
Be careful with databases and systems containing customer data or trade secrets.
Review Output
Especially in the beginning, check what Claude actually does. If it's going to write files or send messages, verify it looks right.
API Keys
Store them securely. They give access to your accounts and services.
Autonomy requires caution
The more you let Claude do independently, the more important it is to understand what it has access to. Start small and expand gradually.
Troubleshooting
Claude Doesn't See the MCP Servers
- Check that the JSON syntax in the config file is correct
- Restart Claude Desktop completely (not just minimize)
- Verify Node.js is installed and working
Filesystem Server Can't Find Files
- Double-check the paths in the config file
- Make sure the folders actually exist
- Check permissions (especially on Mac)
Brave Search Doesn't Work
- Verify the API key is correct
- Check you haven't exceeded the free quota
- Test the key directly against Brave's API to isolate the problem
TLDR
- MCP gives Claude the ability to use tools and do things, not just respond.
- Filesystem server lets Claude read and write local files.
- Brave Search provides web search (free up to 2000 searches/month).
- Combine tools for powerful workflows.
- Think about security and only give access to what's needed.
The nice thing about this setup is you can start simple and build out gradually. Add new MCP servers as you find new needs.
Want to see how I use MCP and Claude in my daily work? Read AI for consultants: how I use it in my own work.
Frequently Asked Questions
Do I need to pay for Claude to use MCP?
Claude Desktop is free to use, but has usage limits. With Claude Pro (around $20/month) you get more usage. MCP functionality works regardless.
Is it safe to give Claude access to my files?
You choose exactly which folders Claude can see. Only give access to what's needed. Avoid folders with sensitive information, passwords, or trade secrets.
Does MCP work on Windows?
Yes, Claude Desktop is available for both Mac and Windows. The configuration looks slightly different (different paths), but the process is the same.
Can I build custom MCP servers?
Yes, if you have a technical background. MCP uses JSON-RPC and there are SDKs for Python and TypeScript. Study existing servers as examples to get started.
Want help setting up a customized AI assistant for your business? Learn more about our AI development service or book a call and we'll discuss what's possible.
Related articles
Need help with AI?
We help businesses implement AI solutions that actually work. Book a free consultation.
Book consultation