# Claude Code Features and Practical Usage
🔌 Still copy-pasting schemas and logs into chat? Connect Sentry, PostgreSQL, or GitHub via MCP and Claude reads and writes those systems directly. "Investigate the last 30 days of this table" just works.
📌 Title and Feature URL
Title: MCP
URL:
📝 Overview
MCP (Model Context Protocol) is an open standard for AI tool integration that connects Claude Code to hundreds of external tools and data sources. MCP servers give Claude Code access to tools, databases, and APIs, so it can read and operate those systems directly instead of working from what you paste.
🔧 How It Works
- Multiple transports exist: HTTP (recommended) for remote connections, WebSocket for bidirectional push, stdio for local processes, and the deprecated SSE.
- Three scopes are available: local (default, private to you, stored in ~/.claude.json), project (shared via .mcp.json), and user (all projects, private to you).
- Many cloud servers require authentication and support OAuth 2.0; on a 401/403 response you can complete the flow from /mcp.
- Tool search is on by default, lazily loading MCP tools on demand to keep context usage low.
🛠 Practical Usage
- Add with claude mcp add --transport http
, or for stdio claude mcp add [options] -- [args...]. Options go before the server name.
- Manage with claude mcp list / claude mcp get / claude mcp remove , and use /mcp inside a session to check status and authenticate.
- Set scope with flags like --scope project; for project sharing, the .mcp.json file is version-controlled.
- Reference MCP resources with @/server:protocol://resource/path, e.g. analyze @/github:issue://123.
- Run MCP prompts as commands in the form /mcp__servername__promptname.
🎯 Use Cases
- Connect Sentry and debug production issues: "What are the most common errors in the last 24 hours?"
- Connect PostgreSQL and query without pasting the schema: "Find customers who haven't purchased in the last 90 days."
- Connect GitHub's remote MCP and ask "Review PR #456# and suggest improvements."
- Commit .mcp.json so the whole team shares the same set of MCP tools.
⚠️ Caveats
- Confirm you trust each server before connecting; servers that fetch external content can be exposed to prompt-injection risks.
- Project-scoped servers require approval before use for safety (reset choices with claude mcp reset-project-choices).
- A warning appears when tool output exceeds 10,000 tokens; raise the cap with MAX_MCP_OUTPUT_TOKENS (default max is 25,000).
- SSE is deprecated; use HTTP where possible.
#ClaudeCode# #MCP#