Export High-Res PDF
Switch to Light Mode
SkillSnap Official GuideUpdated 7/24/2026
Model Context Protocol
The open standard for connecting AI models to data. Master Resources, Tools, and Prompts to give Claude and other models real-world capabilities.
Core Architecture
Host (Claude), Client (Connector), Server (Logic)Roles
Stdio (Local Pipe) or SSE (Remote Event Stream)Transports
Stateless communication protocolJSON-RPC
Handshake to negotiate features (prompts/resources)Capabilities
Primitives
Read-only data (context). URI-based access.Resources
Executable actions. Requires JSON Schema.Tools
Slash commands / Context injection templatesPrompts
Configuration & Setup
~/Library/Application Support/Claude/claude_desktop_config.jsonConfig Path (Mac)
tail -f ~/Library/Logs/Claude/mcp.logLog Path
Pass via 'env' object in config (Never hardcode)Env Vars
Development Best Practices
Use for logs in Stdio (console.log breaks JSON-RPC)console.error()
Web UI to test servers without ClaudeMCP Inspector
Validate tool inputs strictlyZod
Run remote servers without installingnpx -y
Security
Prevent Directory Traversal (path.resolve)Path Sanitization
Restrict file access to specific workspacesScope Limiting
Never trust model parameters blindlyInput Validation
Tooling Ecosystem
Query local databasesSQLite MCP
Manage PRs and IssuesGitHub MCP
Read/Write local files (Controlled)Filesystem MCP
Browser automation & scrapingPuppeteer