xiaohongshu
xiaohongshu
claude-mcp-expert
Expert on Model Context Protocol (MCP) integration, MCP servers, installation, configuration, and authentication. Triggers when user mentions MCP, MCP servers, installing MCP, connecting tools, MCP resources, MCP prompts, or remote/local MCP servers.
Full skill instructions
Provide expert guidance on integrating MCP (Model Context Protocol) servers with Claude Code, including installation, configuration, authentication, and troubleshooting. Auto-invokes when users want to connect external tools and data sources.
Auto-invoke when users mention:
.claude/skills/ai/claude-code/docs/code_claude_com/docs_en_mcp.mdModel Context Protocol (MCP) is an open-source standard that allows Claude Code to connect to:
Benefits:
Ask the user:
What would you like to connect with MCP?
**Popular integrations:**
- Development: Sentry, GitHub, Socket
- Project Management: Jira, Linear, Notion, Asana
- Databases: PostgreSQL, MongoDB, MySQL
- Communication: Slack, Gmail
- Cloud: AWS, Google Cloud
- File Systems: Local files, Google Drive
Or describe what you want to do, and I'll recommend an MCP server.
Explain the three types:
HTTP Server (recommended for remote services):
claude mcp add --transport http server-name https://mcp.service.com/mcp
SSE Server (Server-Sent Events):
claude mcp add --transport sse server-name https://mcp.service.com/sse
stdio Server (local/npm packages):
claude mcp add --transport stdio server-name -- npx -y package-name
# Recommended: Use /mcp command in Claude Code
/mcp
# Then select:
# - Add new server
# - Follow prompts
# - Authenticate if needed
HTTP Server:
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
SSE Server:
claude mcp add --transport sse asana https://mcp.asana.com/sse
stdio Server with environment variables:
claude mcp add --transport stdio github \
--env GITHUB_TOKEN=your_token \
-- npx -y @modelcontextprotocol/server-github
Explain where MCP servers are stored:
Location: ~/.claude/.mcp.json
Use for:
Install:
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp --user
Location: .claude/.mcp.json
Use for:
Install:
claude mcp add --transport http linear https://mcp.linear.app/mcp --project
Location: .claude/.mcp.local.json
Use for:
Install:
claude mcp add --transport http notion https://mcp.notion.com/mcp --local
Most MCP servers require authentication:
# Install server
claude mcp add --transport http github https://mcp.github.com/mcp
# Authenticate via /mcp command
/mcp
# Select: Authenticate with server
# Browser opens, authorize app
claude mcp add --transport stdio server-name \
--env API_KEY=your_api_key \
--env TEAM_ID=your_team_id \
-- npx -y package-name
{
"env": {
"GITHUB_TOKEN": "ghp_xxxxx",
"SENTRY_AUTH_TOKEN": "sntrys_xxxxx"
}
}
After installation:
# Check MCP servers
/mcp
# Lists:
# - Active servers
# - Available tools
# - Authentication status
# - Resources and prompts
Sentry (Error monitoring):
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
Use for: "Check Sentry for errors in the last 24 hours"
GitHub (Code hosting):
claude mcp add --transport http github https://api.github.com/mcp
Use for: "Create a PR for this feature", "Review open issues"
Socket (Security analysis):
claude mcp add --transport http socket https://mcp.socket.dev/
Use for: "Analyze dependencies for security vulnerabilities"
Jira (via Atlassian):
claude mcp add --transport sse atlassian https://mcp.atlassian.com/v1/sse
Use for: "Implement feature from JIRA-123", "Update ticket status"
Linear:
claude mcp add --transport http linear https://mcp.linear.app/mcp
Use for: "Create issue", "List my assigned tasks"
Notion:
claude mcp add --transport http notion https://mcp.notion.com/mcp
Use for: "Read project docs", "Update status page"
Asana:
claude mcp add --transport sse asana https://mcp.asana.com/sse
Use for: "Create task", "Check project timeline"
PostgreSQL (local):
claude mcp add --transport stdio postgres \
--env POSTGRES_CONNECTION_STRING="postgresql://user:pass@localhost:5432/db" \
-- npx -y @modelcontextprotocol/server-postgres
MongoDB (local):
claude mcp add --transport stdio mongodb \
--env MONGODB_URI="mongodb://localhost:27017/mydb" \
-- npx -y @modelcontextprotocol/server-mongodb
Filesystem (local files):
claude mcp add --transport stdio filesystem \
--env ALLOWED_DIRECTORIES=/path/to/dir1:/path/to/dir2 \
-- npx -y @modelcontextprotocol/server-filesystem
Google Drive:
claude mcp add --transport stdio google-drive \
-- npx -y @modelcontextprotocol/server-gdrive
Slack:
claude mcp add --transport stdio slack \
--env SLACK_BOT_TOKEN=xoxb-your-token \
--env SLACK_TEAM_ID=T1234567 \
-- npx -y @modelcontextprotocol/server-slack
Gmail:
claude mcp add --transport stdio gmail \
-- npx -y @modelcontextprotocol/server-gmail
{
"mcpServers": {
"server-name": {
"transport": "http" | "sse" | "stdio",
"url": "https://mcp.service.com/mcp", // For http/sse
"command": "npx", // For stdio
"args": ["-y", "package-name"], // For stdio
"env": {
"API_KEY": "your_key",
"TEAM_ID": "your_id"
}
}
}
}
{
"mcpServers": {
"sentry": {
"transport": "http",
"url": "https://mcp.sentry.dev/mcp"
},
"github": {
"transport": "http",
"url": "https://api.github.com/mcp"
},
"postgres": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"POSTGRES_CONNECTION_STRING": "postgresql://localhost:5432/mydb"
}
}
}
}
Use environment variables in config:
{
"mcpServers": {
"github": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}
Then set in shell or settings.json:
{
"env": {
"GITHUB_TOKEN": "ghp_xxxxx"
}
}
Once server is connected, use tools:
# GitHub MCP
"Create a PR for this feature"
"List open issues assigned to me"
"Add a comment to PR #123"
# Sentry MCP
"Check errors in the last 24 hours"
"Show details for error SENTRY-123"
# PostgreSQL MCP
"Find 10 random users in the database"
"Query users table for active accounts"
# Notion MCP
"Read the project roadmap page"
"Update the status page with this info"
MCP resources are files/data the server provides:
Reference resources:
@mcp://server-name/resource-name
Example:
Review @mcp://github/README.md and suggest improvements
MCP prompts become slash commands:
Format:
/mcp__<server-name>__<prompt-name> [args]
Example:
/mcp__github__create_issue "Bug in login" high
/mcp__jira__update_status PROJ-123 "In Progress"
# Interactive management
/mcp
# Options:
# - View all servers
# - Add new server
# - Remove server
# - Authenticate
# - Clear auth tokens
# - View tools/prompts/resources
# List servers
claude mcp list
# Add server
claude mcp add --transport http name url
# Remove server
claude mcp remove name
# Test connection
claude mcp test name
Edit .mcp.json directly:
{
"mcpServers": {
"new-server": {
"transport": "http",
"url": "https://mcp.example.com/mcp"
}
}
}
Location (enterprise-controlled):
/Library/Application Support/ClaudeCode/managed-mcp.json/etc/claude-code/managed-mcp.jsonC:\ProgramData\ClaudeCode\managed-mcp.jsonFeatures:
In managed-settings.json:
{
"allowedMcpServers": [
{"serverName": "github"},
{"serverName": "sentry"}
],
"deniedMcpServers": [
{"serverName": "filesystem"}
]
}
Behavior:
allowedMcpServers: Only these servers can be installeddeniedMcpServers: These servers are blocked (takes precedence)allowedMcpServers: No restrictionsallowedMcpServers: Complete lockdownPlugins can bundle MCP servers:
Automatic installation:
Example:
# Install plugin that includes MCP servers
/plugin install company-tools@internal
# MCP servers from plugin are now active
If you have MCP servers configured in Claude Desktop:
# Import configuration
claude mcp import-from-desktop
# Or manually copy from:
# ~/Library/Application Support/Claude/claude_desktop_config.json
Warning thresholds:
Configure limit:
export MAX_MCP_OUTPUT_TOKENS=50000
Or in settings.json:
{
"env": {
"MAX_MCP_OUTPUT_TOKENS": "50000"
}
}
⚠️ Use MCP servers at your own risk:
Best practices:
Check:
Debug:
# Run with debug mode
claude --debug
# Look for MCP connection errors
# Check: "MCP server 'name' connected"
Solutions:
/mcp → Authenticate/mcp → Clear authCheck:
/mcpVerify tools:
/mcp
# Select server
# View "Available tools"
Check:
which npxnpx -y package-name --versionTest manually:
# Run stdio command directly
npx -y @modelcontextprotocol/server-github
# Should start server, show JSON-RPC messages
Check:
jq . < .mcp.jsonValidate:
# Validate JSON
cat .claude/.mcp.json | jq .
# Check active config
/mcp
Check:
chmod 644 .mcp.json✅ Use project scope for team integrations ✅ Use user scope for personal tools ✅ Authenticate with OAuth when available ✅ Store sensitive keys in settings.json (not .mcp.json) ✅ Test servers before sharing with team ✅ Document required authentication for team ✅ Use environment variables for secrets ✅ Review server permissions regularly
❌ Commit API keys to git ❌ Install untrusted servers ❌ Share OAuth tokens ❌ Use excessive output limits ❌ Bypass enterprise restrictions ❌ Forget to authenticate after install ❌ Mix personal/team servers in wrong scope
Setup:
claude mcp add --transport http github https://api.github.com/mcp --project
claude mcp add --transport sse atlassian https://mcp.atlassian.com/v1/sse --project
Usage:
"Read JIRA ticket ENG-123, implement the feature, and create a PR on GitHub"
Setup:
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp --user
Usage:
"Check Sentry for errors in the last hour and fix them"
Setup:
claude mcp add --transport stdio postgres --env POSTGRES_CONNECTION_STRING=... -- npx -y @modelcontextprotocol/server-postgres
claude mcp add --transport stdio gmail -- npx -y @modelcontextprotocol/server-gmail
Usage:
"Find 10 beta users from database and draft Gmail invites to feedback session"
Claude Code can act as an MCP server for other applications:
# Expose Claude Code via MCP
claude mcp serve --port 8080
# Other apps can connect to:
# http://localhost:8080/mcp
Capabilities exposed:
.claude/skills/ai/claude-code/docs/code_claude_com/docs_en_mcp.mdxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience