# MCP Servers Setup Guide for Claude Code
## ๐ฏ Overview
This guide documents all MCP servers configured for optimal development workflow with Claude Code in VSCode.
**Configuration File**: `~/Library/Application Support/Code/User/settings.json`
---
## โ
Configured MCP Servers (7 Total)
### 1. **Fetch MCP** ๐
**Purpose**: Web content fetching and conversion
**What I Can Do:**
- Fetch web pages and convert to markdown
- Extract documentation from websites
- Research APIs and libraries
- Get latest package information
**Use Cases:**
```
"Fetch the latest Python documentation for asyncio"
"Get information from https://example.com"
"Research the TradingView API"
```
**Configuration:**
```json
{
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-fetch"]
}
```
---
### 2. **GitHub MCP** ๐
**Purpose**: GitHub repository management and operations
**What I Can Do:**
- Search repositories and code
- Read files from any repo
- Create and manage issues
- List PRs and branches
- Get repository information
- Manage releases
**Use Cases:**
```
"Search GitHub for Python trading libraries"
"Get the README from anthropics/mcp-python"
"List issues in my TradingViewMCPServer repo"
"Create a new issue about X"
```
**Configuration:**
```json
{
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_..."
}
}
```
**Token Permissions:**
- โ
`repo` - Full repository access
- โ
`read:org` - Read organization data
- โ
`gist` - Gist access
---
### 3. **Filesystem MCP** ๐
**Purpose**: Project structure tracking and file operations
**What I Can Do:**
- Navigate project directories
- Read file contents efficiently
- Track project structure
- Search files by patterns
- List directory contents
- Monitor file changes
**Allowed Directories:**
- `/Users/levtheswag/VSCodestuff` (your main projects)
- `/Users/levtheswag/Github Forking` (forked repositories)
**Use Cases:**
```
"Show me the structure of my TradingViewMCPServer project"
"Find all Python files in my project"
"List files in the scrapy directory"
"Read all config files in my project"
```
**Configuration:**
```json
{
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/levtheswag/VSCodestuff",
"/Users/levtheswag/Github Forking"
]
}
```
**Benefits:**
- โ
Efficient directory traversal
- โ
Fast file searches
- โ
Structured project overview
- โ
No need for manual `ls` commands
---
### 4. **Sequential Thinking MCP** ๐ง
**Purpose**: Dynamic and reflective problem-solving
**What I Can Do:**
- Break down complex problems step-by-step
- Think through architecture decisions
- Plan multi-step implementations
- Reason about edge cases
- Structured debugging approach
**Use Cases:**
```
"Help me think through how to implement X feature"
"What's the best architecture for Y?"
"Break down this complex problem"
"Debug this issue step by step"
```
**Configuration:**
```json
{
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
}
```
**Benefits:**
- โ
Structured problem-solving
- โ
Clear step-by-step reasoning
- โ
Better architecture decisions
- โ
Thorough debugging process
---
### 5. **Memory MCP** ๐พ
**Purpose**: Knowledge graph-based persistent memory
**What I Can Do:**
- Remember context across sessions
- Store project-specific knowledge
- Track decisions and rationale
- Maintain conversation history
- Build knowledge graphs
**Use Cases:**
```
"Remember that we're using Python 3.10+ for this project"
"What did we decide about the architecture?"
"Recall our discussion about Pine Script v6"
"Store this pattern for future reference"
```
**Configuration:**
```json
{
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"]
}
```
**Benefits:**
- โ
Context persistence
- โ
No need to re-explain project structure
- โ
Tracks decisions and patterns
- โ
Builds project knowledge over time
---
### 6. **Git MCP** ๐
**Purpose**: Advanced Git repository operations
**What I Can Do:**
- Read commit history
- Search through commits
- Analyze code changes
- Find when bugs were introduced
- Track file history
- Blame analysis
**Configured Repository:**
- `/Users/levtheswag/VSCodestuff/TradingViewMCPServer`
**Use Cases:**
```
"Show me recent commits"
"When was this function changed?"
"Find the commit that introduced this bug"
"Show me who changed this file"
"Search commits for 'Pine Script'"
```
**Configuration:**
```json
{
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git",
"--repository",
"/Users/levtheswag/VSCodestuff/TradingViewMCPServer"
]
}
```
**Benefits:**
- โ
Deep git history analysis
- โ
Code archaeology
- โ
Bug tracking
- โ
Understanding code evolution
---
### 7. **SQLite MCP** ๐๏ธ
**Purpose**: Local database operations and queries
**What I Can Do:**
- Query SQLite databases
- Create and manage tables
- Run SQL queries
- Analyze database structure
- Data migrations
**Allowed Directory:**
- `/Users/levtheswag/VSCodestuff` (can access any .db files here)
**Use Cases:**
```
"Query the database at path/to/db.sqlite"
"Show me the schema of this database"
"Run this SQL query: SELECT * FROM..."
"Create a new table for X"
```
**Configuration:**
```json
{
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sqlite",
"/Users/levtheswag/VSCodestuff"
]
}
```
**Benefits:**
- โ
Local data analysis
- โ
Database debugging
- โ
Quick queries
- โ
Schema inspection
---
## ๐ How to Reload Configuration
After updating MCP configuration:
### Option 1: Reload VSCode Window (Recommended)
1. Press `Cmd+Shift+P` (macOS) or `Ctrl+Shift+P` (Windows/Linux)
2. Type "Reload Window"
3. Press Enter
### Option 2: Restart VSCode
Close and reopen VSCode completely.
---
## ๐งช Testing MCP Servers
After reload, test each server:
### Test All Servers
```
"What MCP servers do you have access to?"
```
Expected response should list:
- `mcp__fetch` (web fetching)
- `mcp__github` (GitHub operations)
- `mcp__filesystem` (file operations)
- `mcp__sequential_thinking` (problem solving)
- `mcp__memory` (persistent memory)
- `mcp__git` (git operations)
- `mcp__sqlite` (database operations)
### Individual Tests
**Fetch:**
```
"Fetch content from https://example.com"
```
**GitHub:**
```
"List my GitHub repositories"
```
**Filesystem:**
```
"Show me the structure of my TradingViewMCPServer"
```
**Sequential Thinking:**
```
"Think through how to implement a new feature step by step"
```
**Memory:**
```
"Remember that this project uses Python 3.10+"
```
**Git:**
```
"Show me recent commits in TradingViewMCPServer"
```
**SQLite:**
```
"List databases in my VSCodestuff folder"
```
---
## ๐ฏ Development Workflow Benefits
### **Python Development**
- โ
Fetch Python documentation instantly
- โ
Search GitHub for Python libraries
- โ
Track project structure with Filesystem
- โ
Remember Python patterns with Memory
- โ
Query local databases with SQLite
### **C# Development**
- โ
Fetch C# documentation
- โ
Search GitHub for .NET libraries
- โ
Track .NET project structure
- โ
Remember C# patterns
### **General Coding**
- โ
Sequential Thinking for complex problems
- โ
Git for code history analysis
- โ
GitHub for research and collaboration
- โ
Memory for project-specific knowledge
### **Project Management**
- โ
Filesystem for structure overview
- โ
Git for commit tracking
- โ
GitHub for issue management
- โ
Memory for decisions and rationale
---
## ๐ Recommended Usage Patterns
### **Starting a New Feature**
1. **Sequential Thinking**: Plan the feature
2. **Filesystem**: Check current structure
3. **Git**: Review related commits
4. **Memory**: Recall similar patterns
5. **Fetch**: Research if needed
6. **GitHub**: Check for existing solutions
### **Debugging**
1. **Sequential Thinking**: Break down the problem
2. **Git**: Find when bug was introduced
3. **Filesystem**: Navigate to relevant files
4. **Memory**: Recall similar bugs
5. **Fetch**: Research error messages
### **Research**
1. **Fetch**: Get official documentation
2. **GitHub**: Search for examples
3. **Memory**: Store findings
4. **Sequential Thinking**: Evaluate options
---
## ๐ฆ Adding More MCP Servers
### Available Official Servers
To add more servers, edit `settings.json` and add to `claude-code.mcpServers`:
**Brave Search** (Web Search):
```json
"brave-search": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
"env": {
"BRAVE_API_KEY": "your_key_here"
}
}
```
**PostgreSQL** (Database):
```json
"postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://user:pass@localhost/db"
]
}
```
**Slack** (Team Communication):
```json
"slack": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-slack"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-...",
"SLACK_TEAM_ID": "T..."
}
}
```
**Google Drive**:
```json
"gdrive": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-gdrive"]
}
```
---
## ๐ Security Considerations
### API Keys
- โ
Stored locally in settings.json
- โ
Only accessible by your user account
- โ ๏ธ Don't commit settings.json to git
- โ ๏ธ Disable Settings Sync for sensitive data
### File Access
- โ
Filesystem MCP restricted to specified directories
- โ
SQLite MCP restricted to specified directories
- โ
Git MCP restricted to specified repository
### Best Practices
1. **Use minimal permissions** for API tokens
2. **Restrict directories** to only what's needed
3. **Review token scopes** regularly
4. **Rotate tokens** periodically
---
## ๐ ๏ธ Troubleshooting
### MCP Server Not Working
**Problem**: Server doesn't appear after reload
**Solutions:**
1. Check JSON syntax in settings.json (no trailing commas!)
2. Ensure `npx` is installed (`npm install -g npm`)
3. Check VSCode Developer Console (Help โ Toggle Developer Tools)
4. Try restarting VSCode completely
### Permission Errors
**Problem**: "Access denied" or permission errors
**Solutions:**
1. Check directory paths are correct
2. Ensure you have read/write permissions
3. For Git MCP, ensure repository path is correct
4. For GitHub MCP, verify token has correct scopes
### Slow Performance
**Problem**: MCP tools are slow to respond
**Solutions:**
1. Reduce number of directories in Filesystem MCP
2. Use more specific Git repository paths
3. Check network connection for Fetch/GitHub MCP
4. Clear npm cache: `npm cache clean --force`
---
## ๐ Current Configuration Summary
```
Total MCP Servers: 7
โ
Fetch - Web content retrieval
โ
GitHub - Repository management (with token)
โ
Filesystem - Project structure (2 directories)
โ
Sequential - Problem-solving framework
โ
Memory - Persistent context
โ
Git - Repository analysis (TradingViewMCPServer)
โ
SQLite - Local database queries
Allowed Directories:
- /Users/levtheswag/VSCodestuff
- /Users/levtheswag/Github Forking
Git Repository:
- /Users/levtheswag/VSCodestuff/TradingViewMCPServer
```
---
## ๐ Next Steps
1. **Reload VSCode Window** (Cmd+Shift+P โ "Reload Window")
2. **Test All Servers** - Ask: "What MCP servers do you have?"
3. **Try Each Server** - Test with the examples above
4. **Start Using!** - Integrate into your workflow
---
## ๐ Resources
- **Official MCP Servers**: https://github.com/modelcontextprotocol/servers
- **MCP Documentation**: https://modelcontextprotocol.io
- **Claude Code Docs**: https://docs.claude.com/claude-code
---
**Configuration Date**: 2025-01-XX
**Status**: โ
Ready to Use
**Action Required**: Reload VSCode Window
---
**Happy Coding!** ๐
With these MCP servers, I can now:
- ๐ Research anything instantly
- ๐ Navigate your projects efficiently
- ๐ง Think through complex problems systematically
- ๐พ Remember context across sessions
- ๐ Analyze code history deeply
- ๐๏ธ Query databases on the fly
- ๐ Manage GitHub seamlessly
You're all set for the ultimate development experience! ๐