How to use MCP server tools in the Claude App?
What is MCP?
MCP stands for Model Context Protocol. It is an open-source project run by Anthropic and is open to contributions from the entire community. It lets Claude and other AI models directly interact with your tools and data. Instead of copying and pasting between applications, the AI can:
...and much much more!
This brief tutorial assumes that:
So what do you need to do?
Mine is here c:\Users\<username>\AppData\Roaming\Claude
but look for your <username>
You will find all the information here:
Here is my file (of course, without the user name and the Brave API key):
WARNING: I am using node.exe as there is an issue with npx when it comes to MCP!
{
"mcpServers": {
"brave-search": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": [
"c:\\Users\\<username>\\AppData\\Roaming\\npm\\node_modules\\@modelcontextprotocol\\server-brave-search\\dist\\index.js"
],
"env": {
"BRAVE_API_KEY": "<brave_api_key>"
}
},
"filesystem": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": [
"c:\\Users\\<username>\\AppData\\Roaming\\npm\\node_modules\\@modelcontextprotocol\\server-filesystem\\dist\\index.js",
"c:\\Users\\<username>\\myfolder"
]
}
}
}
The docs assume you use npx and I am pretty sure they will fix it!
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
npm install -g @modelcontextprotocol/server-brave-search
npm install -g @modelcontextprotocol/server-filesystem
It even shows you what MCP tools are specifically available to you :)
领英推荐
In my example, I am looking for the latest Champions League results and goal scorers, and I want the results to be dumped in the file in the predefined folder.
Claude communicates with the MCP Server, gets information on the tools (capabilities), runs the given query, and the MCP Server does the job: searching the web or database, managing local files, or carrying out other actions.
There are some predefined servers:
You can create a custom one yourself!
So the flow goes like per this sequence diagram
So, what does it look like in the App? Claude gets the results, and the scorers, and then it dumps them into a file:
And my sample output file looks like this:
This feature opens many possibilities to enhance Claude's default capabilities.
Of course, this is a beta version, so you should expect some glitches:
But now, I can use Claude as a search engine, too. I will invent new, cunning ways of connecting the MCP tools!
And I am pretty sure I will create my own MCP Server at some point :)
Happy experimenting! Contact me if you have any remarks or questions!
Storytelling Engineer
6 天前Hey Mariusz, great insights on using MCP server tools with the Claude App! Quick question: What are the best practices for securing MCP server integrations to protect data and prevent unauthorized access?
Founder & CEO | Ex-CTO @ Eltropy | CFI Expert | SaaS Startup Expert | Technical Leadership
3 个月Nicely explained. I have also created a REST and CLI Client to test this out: https://github.com/rakesh-eltropy/mcp-client