mcp-servers-guide
БесплатноБез исполняемых скриптовНе проверенComprehensive guide to MCP (Model Context Protocol) servers — the standard for connecting AI agents to tools. Covers architecture, transport types…
от nirholas★ 289 звёзд на GitHubОб этом скилле
MCP Servers Comprehensive Guide
MCP (Model Context Protocol) is the open standard for connecting AI agents to tools. This guide covers everything from architecture to deployment.
What Is MCP?
AI Agent (Claude, GPT, etc.)
│
▼
MCP Client (built into host app)
│
▼
MCP Server (your tool/service)
│
├── Tools (functions the agent can call)
├── Resources (data the agent can read)
└── Prompts (templates for the agent)
Core Primitives
Tools
Functions the agent can execute:
server.tool('getTokenPrice', {
description: 'Get the current price of a cryptocurrency',
parameters: z.object({
symbol: z.string().describe('Token symbol (e.g., SPA, ETH)'),
currency: z.string().default('usd').describe('Target currency')
}),
handler: async ({ symbol, currency }) => {
const price = await fetchPrice(symbol, currency);
return { content: [{ type: 'text', text: `${symbol}: $${price}` }] };
}
});
Resources
Data the agent can read:
server.resource('portfolio', {
description: 'User DeFi portfolio',
uri: 'portfolio://current',
handler: async () => {
const portfolio = await getPortfolio();
return { content: [{ type: 'text', text: JSON.stringify(portfolio) }] };
}
});
Prompts
Templates for the agent:
server.prompt('defi-analysis', {
description: 'Analyze a DeFi protocol',
arguments: [{ name: 'protocol', description: 'Protocol name' }],
handler: ({ protocol }) => ({
messages: [{
role: 'user',
content: `Analyze the DeFi protocol "${protocol}" covering TVL, APY, risks, and team.`
}]
})
});
Transport Types
| Transport | How It Works | Best For |
|---|---|---|
| stdio | Command-line process (stdin/stdout) | Local tools, CLI |
| SSE | Server-Sent Events over HTTP | Remote servers |
| Streamable HTTP | HTTP with streaming | Web services |
stdio Setup
{
"mcpServers": {
"my-tool": {
"command": "npx",
"args": ["@my/mcp-server"]
}
}
}
SSE Setup
{
"mcpServers": {
"my-tool": {
"url": "https://mcp.example.com/sse"
}
}
}
Building an MCP Server
TypeScript (Recommended)
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
const server = new McpServer({
name: 'sperax-defi',
version: '1.0.0',
description: 'Sperax DeFi tools'
});
// Add tools
server.tool('getUSdsAPY', {
description: 'Get current USDs auto-yield APY',
handler: async () => ({
content: [{ type: 'text', text: 'USDs APY: 7.2%' }]
})
});
// Start server
const transport = new StdioServerTransport();
await server.connect(transport);
Python
from mcp.server import Server
from mcp.server.stdio import stdio_server
server = Server("sperax-defi")
@server.tool("getUSdsAPY")
async def get_usds_apy():
"""Get current USDs auto-yield APY"""
return "USDs APY: 7.2%"
async def main():
async with stdio_server() as (read, write):
await server.run(read, write)
Security Best Practices
| Practice | Description |
|---|---|
| Input Validation | Validate all tool parameters with Zod/schemas |
| Rate Limiting | Prevent abuse with per-tool rate limits |
| API Key Isolation | Use env vars, never hardcode secrets |
| Least Privilege | Each tool gets minimum necessary permissions |
| Audit Logging | Log all tool invocations |
| Output Sanitization | Never leak internal data in responses |
Popular MCP Servers
| Server | Tools | Stars |
|---|---|---|
| @nirholas/agenti-mcp | 380+ DeFi tools | 1.1K+ |
| @nirholas/sperax-crypto-mcp | Sperax protocol | 200+ |
| @nirholas/binance-mcp | Exchange trading | 400+ |
| filesystem | Local file access | Built-in |
| brave-search | Web search | Built-in |
Links
- MCP Spec: https://modelcontextprotocol.io
- SDK (TypeScript): https://github.com/modelcontextprotocol/typescript-sdk
- SDK (Python): https://github.com/modelcontextprotocol/python-sdk
- MCP Servers GitHub: https://github.com/nirholas/mcp-servers
- SperaxOS: https://app.sperax.io
Установить mcp-servers-guide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mcp-servers-guide?
Comprehensive guide to MCP (Model Context Protocol) servers — the standard for connecting AI agents to tools. Covers architecture, transport types, tool/resource/prompt primitives, security, and how to build, deploy, and discover MCP servers for any use case.
Как установить скилл mcp-servers-guide?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mcp-servers-guide запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic