Skip to content

Commit daea32c

Browse files
ericyangpanclaude
andcommitted
docs: add Claude Code MCP server configuration examples
Add practical configuration examples showing how to set up MCP servers in Claude Code, including filesystem and brave-search servers with proper command structure and environment variables. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 098c50c commit daea32c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

content/articles/en/mcp-servers-explained.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,26 @@ Most MCP servers are distributed as npm packages or Python modules. Follow the i
6767

6868
Add the MCP server configuration to your IDE's settings. The exact format varies by tool, but typically involves specifying the server's command and any required arguments.
6969

70+
Here's an example configuration for Claude Code:
71+
72+
```json
73+
{
74+
"mcpServers": {
75+
"filesystem": {
76+
"command": "npx",
77+
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/your/project"]
78+
},
79+
"brave-search": {
80+
"command": "npx",
81+
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
82+
"env": {
83+
"BRAVE_API_KEY": "your-api-key-here"
84+
}
85+
}
86+
}
87+
}
88+
```
89+
7090
### 4. Test the Integration
7191

7292
Ask your AI agent to use the newly connected tools. For example, if you installed a filesystem MCP, try asking it to read a specific file from your project.

0 commit comments

Comments
 (0)