发现优秀的 MCP 服务器

通过 MCP 服务器扩展您的代理能力,拥有 22,405 个能力。

全部22,405
MCP JS Server Template

MCP JS Server Template

好的,这是一个简化的 Node.js MCP (Minecraft Protocol) 服务器模板: ```javascript const net = require('net'); const server = net.createServer((socket) => { console.log('客户端已连接:', socket.remoteAddress, socket.remotePort); // 处理数据接收 socket.on('data', (data) => { console.log('收到数据:', data); // TODO: 解析 Minecraft 协议数据并进行处理 // 示例:发送一个简单的响应 socket.write(Buffer.from([0x00, 0x00])); // 示例:保持连接包 }); // 处理连接关闭 socket.on('close', () => { console.log('客户端已断开连接:', socket.remoteAddress, socket.remotePort); }); // 处理错误 socket.on('error', (err) => { console.error('Socket 错误:', err); }); }); const port = 25565; // 默认 Minecraft 端口 server.listen(port, () => { console.log('服务器正在监听端口:', port); }); // 处理服务器错误 server.on('error', (err) => { console.error('服务器错误:', err); }); ``` **翻译成简体中文:** ```javascript const net = require('net'); const server = net.createServer((socket) => { console.log('客户端已连接:', socket.remoteAddress, socket.remotePort); // 处理数据接收 socket.on('data', (data) => { console.log('收到数据:', data); // TODO: 解析 Minecraft 协议数据并进行处理 // 示例:发送一个简单的响应 socket.write(Buffer.from([0x00, 0x00])); // 示例:保持连接包 }); // 处理连接关闭 socket.on('close', () => { console.log('客户端已断开连接:', socket.remoteAddress, socket.remotePort); }); // 处理错误 socket.on('error', (err) => { console.error('Socket 错误:', err); }); }); const port = 25565; // 默认 Minecraft 端口 server.listen(port, () => { console.log('服务器正在监听端口:', port); }); // 处理服务器错误 server.on('error', (err) => { console.error('服务器错误:', err); }); ``` **解释:** * **`net` 模块:** Node.js 的 `net` 模块用于创建 TCP 服务器。 * **`net.createServer()`:** 创建一个新的 TCP 服务器。 * **`socket` 对象:** 代表与客户端的连接。 * **`socket.on('data', ...)`:** 监听客户端发送的数据。 **重要:** 你需要在这里解析 Minecraft 协议数据。 * **`socket.write()`:** 向客户端发送数据。 **重要:** 你需要根据 Minecraft 协议格式化数据。 * **`socket.on('close', ...)`:** 监听客户端断开连接事件。 * **`socket.on('error', ...)`:** 监听 socket 错误。 * **`server.listen(port, ...)`:** 服务器开始监听指定的端口。 * **`server.on('error', ...)`:** 监听服务器错误。 **重要提示:** * **Minecraft 协议:** 这个模板只是一个框架。 你需要深入了解 Minecraft 协议才能正确地解析和处理客户端发送的数据,并构建正确的响应。 搜索 "Minecraft Protocol" 可以找到相关文档。 * **数据解析:** `socket.on('data', ...)` 中的 `data` 是一个 `Buffer` 对象。 你需要使用 `Buffer` 的方法来读取和解析数据。 * **错误处理:** 这个模板包含基本的错误处理,但你应该根据你的需求进行更完善的错误处理。 * **安全性:** 在生产环境中,你需要考虑安全性问题,例如防止恶意攻击。 这个模板提供了一个起点,你需要根据你的具体需求进行修改和扩展。 祝你编码愉快!

D&D 5E MCP Server

D&D 5E MCP Server

Provides comprehensive access to Dungeons & Dragons 5th Edition content through the Open5e API. It enables users to search for game mechanics, generate character builds, and create balanced encounters via natural language.

Lunar Calendar MCP Server

Lunar Calendar MCP Server

Provides traditional Chinese lunar calendar information including auspicious date checking, BaZi (八字) Four Pillars analysis, festival data, moon phases, zodiac compatibility, and calendar conversions based on Chinese cultural traditions.

comet-mcp

comet-mcp

An MCP server that connects Claude to Perplexity Comet for agentic web browsing and deep research via an isolated browser instance. It enables Claude to delegate complex navigation, login flows, and real-time task monitoring to Perplexity's specialized research intelligence.

Weather MCP Server

Weather MCP Server

Enables users to get weather forecasts and alerts for any US city and state through natural language queries using the National Weather Service API.

f2c-mcp-server

f2c-mcp-server

f2c-mcp-server

Anava MCP Server

Anava MCP Server

A bridge between AI assistants like Claude and Anava-enabled Axis cameras, enabling real-time image analysis, event monitoring, and camera management through natural language commands.

WOL MCP Server

WOL MCP Server

Provides read-only access to the Watchtower Online Library (WOL) with advanced search capabilities, document retrieval, and multilingual support. Enables users to search and browse Jehovah's Witnesses publications through natural language interactions.

MCP Executor Server

MCP Executor Server

A secure server that enables code execution in isolated Docker environments, supporting Python with strict security constraints including network isolation, limited filesystem access, and resource limitations.

MCP File Server

MCP File Server

Provides secure, sandboxed filesystem operations including reading, writing, listing, searching, and managing files and directories within a configurable working directory with strict security controls.

ABAQUS MCP Server for GUI Scripting

ABAQUS MCP Server for GUI Scripting

A server that enables programmatic interaction with an already running Abaqus/CAE GUI application, allowing users to execute Python scripts and retrieve message logs through the Model Context Protocol (MCP).

documcp

documcp

DocuMCP is an intelligent Model Context Protocol (MCP) server that revolutionizes documentation deployment for open-source projects. It provides deep repository analysis, intelligent static site generator recommendations, and automated GitHub Pages deployment workflows.

Steampipe MCP Server

Steampipe MCP Server

一个 MCP 服务器,允许 Claude 直接查询 Steampipe PostgreSQL 数据库。将 Claude 连接到您的 Steampipe 实例,即可通过自然语言轻松分析来自 AWS、GCP 和其他云提供商的数据。

MCP Continuity Server (Versão Simplificada)

MCP Continuity Server (Versão Simplificada)

MCP Continuity Server 兼容 SDK 1.7.0 的修正版本

MCP Server for WordPress

MCP Server for WordPress

使用 WordPress REST API 实现 MCP 服务器

DDG MCP Server

DDG MCP Server

A basic MCP server template built with FastMCP framework that provides example tools for echoing messages and retrieving server information. Serves as a starting point for building custom MCP servers with support for both stdio and HTTP transports.

Vertex AI MCP Server

Vertex AI MCP Server

Implementation of Model Context Protocol (MCP) server that provides tools for accessing Google Cloud's Vertex AI Gemini models, supporting features like web search grounding and direct knowledge answering for coding assistance and general queries.

Products API MCP Server

Products API MCP Server

An MCP server that retrieves product data from the DummyJSON API, supporting filtering by various parameters like ID, title, category, brand, price and rating.

Heptabase MCP

Heptabase MCP

A Model Context Protocol service that enables AI assistants to search, retrieve, analyze, and export data from Heptabase backups.

Trello Desktop MCP

Trello Desktop MCP

Enables comprehensive Trello integration through Claude Desktop, allowing users to search, create, update, and manage Trello boards, cards, lists, comments, and collaborate with team members through natural language.

Developer MCP Server

Developer MCP Server

一个强大的上下文管理系统,可以在不同的编码会话中保持持久的上下文,帮助开发团队跟踪项目结构、依赖关系和进度。

GibsonAI

GibsonAI

AI-Powered Cloud databases: Empower your LLMs to build, migrate, and deploy database instances with AI

SEI MCP Server V2

SEI MCP Server V2

Enables AI agents to interact with the Sei blockchain ecosystem through natural language, providing DeFi trading, NFT marketplace access, cross-chain bridging, token deployment, and comprehensive on-chain data analytics.

Chatppt Mcp

Chatppt Mcp

mcp-server

mcp-server

Zotero MCP Server

Zotero MCP Server

Integrates with Zotero's local API to search your reference library, retrieve bibliographic details, and extract full text from PDF attachments.

Youtube Mp310 MCP Server

Youtube Mp310 MCP Server

Enables downloading MP3 audio files from YouTube videos by providing a YouTube URL through the Youtube Mp310 API.

mcp-gitlab-jira

mcp-gitlab-jira

A Model Context Protocol (MCP) server for GitLab and Jira integration. This server allows AI agents like gemini-cli to interact with your GitLab and Jira instances.

Xiaohongshu MCP Server

Xiaohongshu MCP Server

An automation server that enables interaction with Xiaohongshu platform through browser automation, supporting functions like article search, content viewing, reading comments, and posting comments.

Playwright MCP

Playwright MCP

Enables browser automation and web page interaction using Playwright's accessibility tree for fast, structured automation without requiring vision models or screenshots.