发现优秀的 MCP 服务器
通过 MCP 服务器扩展您的代理能力,拥有 22,923 个能力。
Cocos Creator MCP Server Plugin
A comprehensive plugin that enables AI assistants to interact with the Cocos Creator editor through the Model Context Protocol, providing 80 tools across 9 categories for nearly complete editor control.
Mcp Server Demo
WeCom Bot MCP Server
镜子 (jìng zi)
Frappe MCP Server
Enables interaction with Frappe Framework sites through comprehensive document operations, schema introspection, report generation, and method execution. Provides secure API-based access to create, read, update, and delete Frappe documents while supporting financial reporting and DocType management.
mermaid-preview-mcp
用于预览 Mermaid 图表并处理语法错误的 MCP 服务器。支持 GitHub 仓库可视化。
MCP Apify
Enables AI assistants to interact with the Apify platform to manage actors, monitor runs, and retrieve scraped data from datasets. It supports natural language commands for executing web scrapers, managing tasks, and accessing key-value stores.
cntx-ui
Provides AI tools with direct access to project file bundles and structure through MCP resources and tools, enabling context-aware development workflows with real-time bundle management.
Tree-Hugger-JS MCP Server
Provides AI agents with powerful JavaScript/TypeScript code analysis and transformation capabilities using the tree-hugger-js library.
MD Webcrawl MCP
一个基于 Python 的 MCP 服务器,用于爬取网站,提取内容并保存为 Markdown 文件,同时具备网站结构和链接映射功能。
Leonardo MCP Server
A Model Context Protocol server that enables AI assistants to generate images using Leonardo AI, supporting both HTTP and stdio communication modes.
Facebook MCP Server
Enables posting text messages to Facebook business pages through MCP. Supports OAuth authentication and manual connection methods for managing Facebook page content.
DroidMind
一个模型上下文协议(MCP)服务器,它使 AI 助手能够控制和交互 Android 设备,从而可以通过自然语言命令实现设备管理、应用调试、系统分析和 UI 自动化。
Refactor MCP
A Model Context Protocol server that provides powerful regex-based code refactoring and search tools for Coding Agents.
Express MCP Server
A basic example of a serverless Model Context Protocol (MCP) server implemented using Netlify Functions with Express, enabling AI agents to interact with custom capabilities.
MeteoSwiss MCP Server
Provides access to official MeteoSwiss weather data, including regional reports, daily forecasts, and website search functionality across multiple languages. It enables AI assistants to retrieve real-time weather information and documentation from MeteoSwiss using the Model Context Protocol.
Video MCP Server
A Model Context Protocol server that provides video processing capabilities including format conversion, metadata extraction, and batch processing with configurable quality settings.
HNPX SDK
Enables AI-guided hierarchical fiction writing through structured XML documents. Supports step-by-step narrative expansion from book-level planning down to individual paragraphs, with custom Roo Code modes for collaborative story development.
Okta MCP Server
MCP Weather
Enables querying 7-day weather forecasts for Chinese cities and regions by scraping China Weather website data. Supports both user input and AI model intelligent city/region parameter matching.
sqlite-reader-mcp
A lightweight MCP server that provides read-only access to SQLite databases, allowing users to execute SELECT queries, list tables, and describe table schemas.
Linear MCP Server
镜子 (jìng zi)
MySQL MCP Server
Enables AI applications to interact with MySQL databases through a secure interface, allowing database exploration, querying, and analysis with proper error handling and logging.
note.com MCP Server
使用 note.com API 的 Model Context Protocol (MCP) 服务器
FGJ Multimedios MCP Server
Enables automated sending of institutional emails via Gmail SMTP with authentication and automatic signature from FGJ Multimedios' General Manager.
OpenSimulator MCP Server
Enables control of OpenSimulator virtual world servers through console commands, supporting region management, user administration, terrain editing, object manipulation, and HyperGrid operations via the REST console API.
create-mcp-server-app
MCP Image Validator
Enables Claude and other MCP clients to analyze and describe images using the Qwen3-VL vision model (235B parameters) through Ollama Cloud API, supporting multiple image formats without requiring local GPU.
Debug MCP Server in VSCode
Okay, here's a basic example of a Minecraft Protocol (MCP) server in Python, along with instructions on how to set it up for debugging in VS Code. This is a *very* simplified example and doesn't implement the full Minecraft protocol. It's designed to be a starting point for learning and debugging. **1. Install Necessary Libraries:** ```bash pip install twisted ``` **2. Create the Python Server File (e.g., `mcp_server.py`):** ```python from twisted.internet import reactor, protocol from twisted.internet.endpoints import TCP4ServerEndpoint from twisted.protocols.basic import LineReceiver class MinecraftServerProtocol(LineReceiver): delimiter = b'\n' # Use newline as the delimiter def connectionMade(self): print(f"Client connected: {self.transport.getHost()}") self.sendLine(b"Hello from the MCP server!") # Send a greeting def lineReceived(self, line): try: decoded_line = line.decode('utf-8') print(f"Received: {decoded_line}") # Simple command handling (example) if decoded_line.lower() == "ping": self.sendLine(b"pong") elif decoded_line.lower() == "time": import time self.sendLine(str(time.time()).encode('utf-8')) # Send current time else: self.sendLine(b"Unknown command") except UnicodeDecodeError: print("Received invalid UTF-8 data") self.sendLine(b"Error: Invalid input") def connectionLost(self, reason): print(f"Client disconnected: {reason}") class MinecraftServerFactory(protocol.Factory): protocol = MinecraftServerProtocol if __name__ == '__main__': endpoint = TCP4ServerEndpoint(25565, reactor) # Listen on port 25565 endpoint.listen(MinecraftServerFactory()) print("MCP server started on port 25565") reactor.run() ``` **Explanation:** * **`twisted`:** This is an asynchronous networking library. It's well-suited for handling network connections efficiently. * **`MinecraftServerProtocol`:** This class handles the communication with each client. * `connectionMade()`: Called when a client connects. Sends a greeting. * `lineReceived()`: Called when a line of data is received from the client. Decodes the line, prints it, and handles simple commands (ping, time). Includes error handling for invalid UTF-8. * `connectionLost()`: Called when a client disconnects. * **`MinecraftServerFactory`:** Creates instances of the `MinecraftServerProtocol` when a new connection is made. * **`if __name__ == '__main__':`:** This block starts the server when the script is run directly. * `TCP4ServerEndpoint`: Creates a TCP server endpoint that listens on port 25565. * `reactor.run()`: Starts the Twisted event loop, which handles all the network events. **3. Configure VS Code for Debugging:** 1. **Open the project folder in VS Code.** 2. **Create a `.vscode` folder** in the root of your project (if it doesn't exist). 3. **Create a `launch.json` file** inside the `.vscode` folder. This file tells VS Code how to run and debug your Python script. ```json { "version": "0.2.0", "configurations": [ { "name": "Python: MCP Server", "type": "python", "request": "launch", "program": "${workspaceFolder}/mcp_server.py", "console": "integratedTerminal", "justMyCode": false // Important for debugging Twisted code } ] } ``` **Explanation of `launch.json`:** * `"name"`: A descriptive name for your debug configuration. * `"type"`: Specifies that you're debugging Python code. * `"request"`: `"launch"` means you're starting the program from VS Code. * `"program"`: The path to your Python script. `${workspaceFolder}` is a VS Code variable that represents the root of your project. * `"console"`: `"integratedTerminal"` means the output will be displayed in VS Code's integrated terminal. * `"justMyCode": false`: **Crucially important for Twisted!** Twisted uses a lot of internal code. Setting this to `false` allows you to step into Twisted's code while debugging, which is often necessary to understand what's going on. **4. Run and Debug:** 1. **Set a breakpoint:** Click in the left margin of the `mcp_server.py` file next to a line of code where you want the debugger to pause (e.g., inside the `lineReceived` function). 2. **Start debugging:** Go to the "Run and Debug" view in VS Code (the icon looks like a play button with a bug). Select "Python: MCP Server" from the dropdown and click the green "Start Debugging" button (or press F5). 3. **The server will start.** You should see the "MCP server started on port 25565" message in the terminal. **5. Test with a Simple Client (netcat or similar):** Open a terminal and use `netcat` (or `nc`) to connect to the server: ```bash nc localhost 25565 ``` Type some text and press Enter. You should see the output in the VS Code terminal where the server is running, and the debugger should pause at your breakpoint. Try sending "ping" or "time". **Important Considerations and Improvements:** * **Error Handling:** The example has basic error handling, but you'll need to add more robust error handling for production code. Consider logging errors to a file. * **Protocol Implementation:** This is a *very* basic example. The real Minecraft protocol is much more complex and uses binary data. You'll need to study the Minecraft protocol documentation to implement it correctly. Libraries like `struct` in Python are essential for packing and unpacking binary data. * **Asynchronous Programming:** Twisted is an asynchronous framework. Make sure you understand how asynchronous programming works to avoid blocking the event loop. Use `defer.inlineCallbacks` and `yield` for asynchronous operations. * **Security:** If you're building a real server, security is paramount. Implement proper authentication, authorization, and input validation to prevent attacks. * **Threading/Multiprocessing:** For a high-performance server, you might need to use threads or processes to handle multiple clients concurrently. Twisted can be integrated with threads, but be careful to avoid race conditions and deadlocks. * **Logging:** Implement proper logging to track server activity and diagnose problems. **Simplified Chinese Translation of Key Phrases:** * "Client connected": 客户端已连接 (Kèhùduān yǐ liánjiē) * "Received": 收到 (Shōudào) * "Unknown command": 未知命令 (Wèi zhī mìnglìng) * "Client disconnected": 客户端已断开连接 (Kèhùduān yǐ duàn kāi liánjiē) * "MCP server started on port 25565": MCP 服务器已在端口 25565 上启动 (MCP fúwùqì yǐ zài duānkǒu 25565 shàng qǐdòng) * "Error: Invalid input": 错误:无效输入 (Cuòwù: Wúxiào shūrù) * "MCP Server": MCP 服务器 (MCP fúwùqì) * "Start Debugging": 开始调试 (Kāishǐ tiáoshì) * "Breakpoint": 断点 (Duàndiǎn) This example provides a foundation for building a more complete MCP server. Remember to consult the Minecraft protocol documentation and use appropriate libraries for handling binary data and asynchronous operations. Good luck!
Remote MCP Server on Cloudflare
BuddyPress MCP Server
Enables AI assistants to interact with BuddyPress sites through the REST API v2. Supports comprehensive community management including activities, members, groups, profiles, messages, friendships, and notifications through natural language.