Lesson 15MCP
Advanced MCP
Resources, prompts, tool search
MCP Resources
Resources are data that servers expose to Claude. You can mention them via @.
> Using @postgres://users/schema, show the users table structure
MCP Prompts
Prompts are predefined command templates from MCP servers.
/mcp-github:create-pr — create Pull Request with description
Tool Search
When there are many MCP servers, Claude searches for the right tool by description.
> Find a tool for creating issues
@ Resource Mentions
Use @ to reference MCP resources in your queries:
@postgres://schemaDatabase schema@github://issues/123Specific issue@file:///path/to/doc.mdLocal file@notion://page/abcNotion page> Using @postgres://users/schema, write a migration to add email_verified field
Claude Code as MCP Server
Claude Code itself can act as an MCP server for other applications:
// claude-code-mcp-server
// Claude Code сам может быть MCP сервером
// В другом приложении:
{
"mcpServers": {
"claude-code": {
"command": "claude",
"args": ["mcp-serve"]
}
}
}
// Теперь другие агенты могут использовать Claude Code💡 This allows using Claude Code capabilities from IDE plugins, CI/CD, or other AI agents
Output Management
MCP servers can return lots of data. Claude manages this:
Token Limits
Servers can specify maximum tokens in response
maxTokens: 5000Pagination
Large results are split into pages
cursor: "next_page_token"Advanced Tips
- •Use @ mentions for precise context specification
- •MCP Prompts work like custom commands
- •With many servers, Claude automatically searches for the right tool
- •Claude Code as MCP server — powerful automation pattern
This lesson is part of a structured LLM course.
My Learning Path