← Back to list

integrating-mcp
by Git-Fg
⭐ 1🍴 0📅 Jan 18, 2026
SKILL.md
name: integrating-mcp description: "Provides comprehensive MCP integration guidance for Claude Code plugins. MUST Use when integrating databases via MCP, setting up MCP servers, or configuring connections. Do not use for API integration, web services, or general database access."
MCP Integration for Claude Code Plugins
Integrate external services into Claude Code plugins using Model Context Protocol (MCP). MCP servers provide secure, structured access to databases, APIs, and other services through a standardized interface.
1. Code Execution Pattern (Recommended)
Instead of direct tool calls, expose code APIs rather than tool call definitions:
{
"mcpServers": {
"code-exec": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-code-exec"],
"env": {
"SANDBOX_PATH": "/tmp/sandbox"
}
}
}
}
Benefits:
- Give Claude a sandbox execution environment with filesystem
- Let Claude write code to make tool calls
- Elegant, prompt-on-demand pattern (similar to skills)
- Reduces token overhead
2. Selective Tool Exposure
Only expose essential tools:
{
"mcpServers": {
"minimal-db": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"MCP_TOOLS": "query,schema"
}
}
}
}
3. Connection Management
- Pool connections to reuse
- Lazy load servers only when needed
- Disconnect inactive servers
Database Integration
Quick Reference
1. Choose Database Type and Configure
- PostgreSQL:
@modelcontextprotocol/server-postgres - MySQL:
@modelcontextprotocol/server-mysql - SQLite:
@modelcontextprotocol/server-sqlite
2. Set Environment Variables
export POSTGRES_URL="postgresql://user:pass@host:5432/db?sslmode=require"
3. Add to settings.json
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres", "${POSTGRES_URL}"]
}
}
}
Resources
References
- references/mcp-configuration.md: Master configuration guide.
- references/security.md: Security best practices.
- references/performance.md: Performance tuning.
- references/schema-management.md: Schema operations.
Examples
- examples/postgres-config.json: PostgreSQL configuration.
- examples/multi-db-config.json: Multiple database setup.
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon