发现优秀的 MCP 服务器
通过 MCP 服务器扩展您的代理能力,拥有 24,372 个能力。
Atlas MCP Server
阿特拉斯 MCP 服务器 (Ātèlāsī MCP fúwùqì)
Minecraft Bedrock MCP Server
A TypeScript-based server that enables AI-powered control of Minecraft Bedrock Edition through 15 powerful tools for player movement, agent operations, world manipulation, and building complex structures.
mcp-ping
Pings a host and returns the result.
calc-mcp
Okay, here's a simplified explanation of how you could create a simple Minecraft server mod (using MCP - Minecraft Coder Pack) that adds a calculator tool. I'll outline the key steps and provide conceptual code snippets. Keep in mind that this is a simplified example, and a fully functional mod would require more detailed code and setup. **Conceptual Overview** The basic idea is to: 1. **Set up your MCP environment:** This involves downloading MCP, deobfuscating the Minecraft code, and setting up your development environment (usually Eclipse or IntelliJ IDEA). 2. **Create a new item (the calculator):** You'll define a new item class that represents your calculator. 3. **Register the item:** You need to register your new item with Minecraft so it can be used in the game. 4. **Add functionality to the item:** When the player right-clicks with the calculator, you'll trigger the calculator logic. This might involve opening a GUI (graphical user interface) where the player can enter numbers and operations. 5. **Handle the GUI (if needed):** If you're using a GUI, you'll need to create the GUI class and handle user input (button clicks, text input, etc.). 6. **Perform calculations:** Implement the actual calculator logic (addition, subtraction, multiplication, division, etc.). 7. **Display the result:** Show the result of the calculation to the player (e.g., in the GUI, in chat, or as a floating text entity). **Simplified Code Snippets (Conceptual)** ```java // Example Item Class (CalculatorItem.java) package com.example.calculator; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecraft.util.ActionResult; import net.minecraft.util.EnumHand; import net.minecraft.util.text.TextComponentString; public class CalculatorItem extends Item { public CalculatorItem() { super(); this.setRegistryName("calculator"); // Important: Set the registry name this.setUnlocalizedName("calculator"); // Set the unlocalized name (for localization) } @Override public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) { ItemStack itemstack = playerIn.getHeldItem(handIn); if (!worldIn.isRemote) { // Server-side only // Simple example: Just send a message to the player playerIn.sendMessage(new TextComponentString("Calculator Activated!")); // In a real mod, you would: // 1. Open a GUI (if you have one) // 2. Start the calculation process } return ActionResult.newResult(net.minecraft.util.EnumActionResult.SUCCESS, itemstack); } } // Example Mod Class (CalculatorMod.java) package com.example.calculator; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraft.item.Item; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.SidedProxy; @Mod(modid = CalculatorMod.MODID, version = CalculatorMod.VERSION, name = CalculatorMod.NAME) public class CalculatorMod { public static final String MODID = "calculator"; public static final String VERSION = "1.0"; public static final String NAME = "Calculator Mod"; @SidedProxy(clientSide = "com.example.calculator.ClientProxy", serverSide = "com.example.calculator.CommonProxy") public static CommonProxy proxy; public static Item calculator; @EventHandler public void preInit(FMLPreInitializationEvent event) { // Initialize your item here (but don't register it yet) calculator = new CalculatorItem(); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerItemRenderer(calculator, 0, "calculator"); } @Mod.EventBusSubscriber public static class RegistrationHandler { @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> event) { event.getRegistry().register(calculator); } } } // CommonProxy.java package com.example.calculator; import net.minecraft.item.Item; public class CommonProxy { public void registerItemRenderer(Item item, int meta, String id) { } } // ClientProxy.java package com.example.calculator; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class ClientProxy extends CommonProxy { @Override public void registerItemRenderer(Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(CalculatorMod.MODID + ":" + id, "inventory")); } } ``` **Explanation of the Code Snippets:** * **`CalculatorItem.java`:** * This defines the `CalculatorItem` class, which extends `Item`. * `onItemRightClick()` is the method that's called when the player right-clicks with the item. This is where you'd put your calculator logic. In this simplified example, it just sends a message to the player. * `setRegistryName()` and `setUnlocalizedName()` are *crucial*. The registry name is how Minecraft identifies the item internally. The unlocalized name is used for localization (making the item name appear correctly in different languages). * **`CalculatorMod.java`:** * This is the main mod class. * `@Mod` annotation: Defines the mod's ID, version, and name. * `@EventHandler preInit`: This method is called before the game loads. You initialize your item here. * `@EventHandler init`: This method is called during game initialization. This is where you register the item renderer. * `@Mod.EventBusSubscriber`: This is used to register the item. * `@SubscribeEvent registerItems`: This method registers the item with the game. * **`CommonProxy.java` and `ClientProxy.java`:** * These are used for handling client-side and server-side code separately. The `ClientProxy` is responsible for registering the item's model (how it looks in the inventory and in the world). **Steps to Implement (More Detailed):** 1. **MCP Setup:** * Download the correct version of MCP for your target Minecraft version. * Extract MCP to a directory. * Run `decompile.bat` (or `decompile.sh` on Linux/macOS) to deobfuscate the Minecraft code. This will take a while. * Run `recompile.bat` (or `recompile.sh`). * Run `reobfuscate.bat` (or `reobfuscate.sh`). * Run `createMcpToEclipse.bat` (or the equivalent for IntelliJ IDEA). 2. **Create the Project:** * In Eclipse or IntelliJ IDEA, create a new Java project. * Import the MCP source code into your project. 3. **Create the Item Class:** * Create the `CalculatorItem.java` file (as shown above). 4. **Create the Mod Class:** * Create the `CalculatorMod.java` file (as shown above). 5. **Create the Proxy Classes:** * Create the `CommonProxy.java` and `ClientProxy.java` files (as shown above). 6. **Register the Item:** * Make sure the `@Mod.EventBusSubscriber` and `@SubscribeEvent` annotations are correctly set up in your `CalculatorMod.java` file to register the item. 7. **Item Model (Important):** * Create a JSON file in `src/main/resources/assets/calculator/models/item/calculator.json` (replace "calculator" with your mod ID if different). This file defines how the item looks. A simple example: ```json { "parent": "item/generated", "textures": { "layer0": "calculator:items/calculator" // Replace with your texture path } } ``` * You'll also need a texture file (a `.png` image) in `src/main/resources/assets/calculator/textures/items/calculator.png`. Create a simple image for your calculator. 8. **GUI (If you want one):** * Create a GUI class that extends `net.minecraft.client.gui.GuiScreen`. * Override the `drawScreen()` method to draw the GUI elements (buttons, text fields, etc.). * Override the `mouseClicked()` method to handle button clicks. * In your `CalculatorItem.onItemRightClick()`, open the GUI using `playerIn.openGui(instance, guiID, worldIn, x, y, z);` You'll need to implement `IGuiHandler` in your main mod class and create a `GuiFactory` to handle the GUI opening. 9. **Calculator Logic:** * Implement the calculator logic (addition, subtraction, etc.) in a separate class or within the GUI class. 10. **Build and Test:** * Build your mod. * Copy the resulting `.jar` file to your Minecraft `mods` folder. * Run Minecraft and test your mod. **Important Considerations:** * **Minecraft Forge:** You'll need to use Minecraft Forge to load your mod. Make sure you have the correct Forge version for your Minecraft version. * **GUI Complexity:** Creating a good GUI is the most complex part of this. Consider using a library like Minecraft's built-in GUI system or a third-party GUI library. * **Error Handling:** Add error handling to your calculator logic to prevent crashes (e.g., division by zero). * **Localization:** Use localization files to make your mod's text translatable. * **Permissions:** If you want to restrict the use of the calculator, you can add permission checks. * **Networking:** If you want to perform calculations on the server-side (e.g., for security), you'll need to use Minecraft's networking system to send data between the client and the server. **Chinese Translation of Key Terms:** * **Minecraft Server Mod:** Minecraft服务器模组 (Minecraft Fúwùqì Mózǔ) * **Calculator Tool:** 计算器工具 (Jìsuànqì Gōngjù) * **MCP (Minecraft Coder Pack):** Minecraft代码包 (Minecraft Dàimǎ Bāo) * **Item:** 物品 (Wùpǐn) * **GUI (Graphical User Interface):** 图形用户界面 (Túxíng Yònghù Jièmiàn) * **Register:** 注册 (Zhùcè) * **Deobfuscate:** 反混淆 (Fǎn Hùnyáo) * **Reobfuscate:** 重新混淆 (Chóngxīn Hùnyáo) * **Forge:** Forge (usually kept in English) * **Texture:** 纹理 (Wénlǐ) * **Model:** 模型 (Móxíng) * **Client-side:** 客户端 (Kèhùduān) * **Server-side:** 服务器端 (Fúwùqìduān) This is a complex project, but hopefully, this detailed explanation and the code snippets give you a good starting point. Good luck!
samcp
Okay, here's a translation of "Implementation of Solana Agent Kit MCP Server" into Chinese, along with some considerations for choosing the best translation: **Option 1 (More Literal):** * **Solana Agent Kit MCP 服务器的实现** * (Solana Agent Kit MCP fúwùqì de shíxiàn) * This is a direct translation. It's clear and understandable, especially if the audience is familiar with the English terms "Agent Kit" and "MCP." "服务器 (fúwùqì)" means "server," and "实现 (shíxiàn)" means "implementation." **Option 2 (Slightly More Natural, Assuming Context):** * **Solana Agent Kit MCP 服务器的开发** * (Solana Agent Kit MCP fúwùqì de kāifā) * This uses "开发 (kāifā)" which means "development." It implies the process of building the server, which might be more appropriate than just "implementation" if you're talking about the entire development effort. **Option 3 (If "Agent Kit" and "MCP" are well-known abbreviations):** * **Solana Agent Kit MCP 服务器实现** * (Solana Agent Kit MCP fúwùqì shíxiàn) * This is a shortened version of Option 1, omitting the "的 (de)". It's grammatically correct and common in technical writing where brevity is valued. **Option 4 (More Explanatory, if needed):** * **Solana 代理工具包 MCP 服务器的实现** * (Solana dàilǐ gōngjùbāo MCP fúwùqì de shíxiàn) * This replaces "Agent Kit" with "代理工具包 (dàilǐ gōngjùbāo)," which means "agent toolkit." This is helpful if the audience might not know what "Agent Kit" refers to. You would still likely leave "MCP" as is, assuming it's a specific acronym. **Which option is best depends on the context:** * **For a technical document or audience already familiar with the terms:** Option 1 or 3 are likely the best. * **For a broader audience or if you want to be more explicit:** Option 4 is a good choice. * **If you're talking about the entire process of building the server:** Option 2 might be more appropriate. **Therefore, my recommendation, assuming a technical audience familiar with the terms, is:** * **Solana Agent Kit MCP 服务器的实现** (Option 1) If you can provide more context about where this translation will be used, I can refine the translation further. For example: * Is this for a technical specification? * Is this for marketing material? * Is the audience primarily developers? * Is "Agent Kit" and "MCP" already established terminology in the Chinese-speaking community you're targeting?
Dev.to Blog Publisher MCP Server
Enables publishing blog posts directly to Dev.to through the Model Context Protocol, allowing seamless content creation and publication via natural language interactions.
Quickbooks MCP Server
为 Intuit Quickbooks 实现的模型上下文协议 (MCP) 服务器。 (Wèi Intuit Quickbooks shíxiàn de Moxing Shangxiawen Xieyi (MCP) fuwuqi.)
NetBox MCP Server
A read-only FastMCP server that enables AI assistants to query and retrieve network infrastructure information from NetBox using natural language.
groundlight-mcp-server
针对 Groundlight 的 MCP 服务器
MCP Journaling Server
The MCP server transforms chats with Claude into journaling sessions, saving conversations locally and allowing the LLM to retrieve previous sessions to create continuity in discussions about daily activities.
Insurance Campaign MCP Server
Enables AI-powered insurance marketing campaign management with audience targeting recommendations and personalized content generation for different insurance products and marketing channels.
peaka-mcp-server
为 Peaka 提供的 MCP 服务器实现方案
Grep App MCP Server
Enables powerful code search across millions of public GitHub repositories using grep.app API, with capabilities to discover code examples, retrieve specific files, and batch fetch multiple files for learning from open source projects.
CalDAV MCP Server
Enables CRUD operations for calendar events, journal entries, and todos on any CalDAV server (like Radicale) through the Model Communication Protocol.
PubMed MCP Server
Enables searching and retrieving detailed information from PubMed articles using the NCBI Entrez API. Supports configurable search parameters including title/abstract filtering and keyword expansion to find relevant scientific publications.
webdev-mcp
An MCP server providing web development tools such as screen capturing capabilities that let AI agents take and work with screenshots of the user's screen.
Linktree Demo
使用 GitHub MCP 服务器创建的演示仓库
Indian Stock Analysis MCP Server
Google Spanner MCP Server by CData
This read-only MCP Server allows you to connect to Google Spanner data from Claude Desktop through CData JDBC Drivers. Free (beta) read/write servers available at https://www.cdata.com/solutions/mcp
GroundDocs
A version-aware Kubernetes documentation assistant that connects LLMs to trusted, real-time Kubernetes docs to reduce hallucinations and ensure accurate, version-specific responses.
Apache Cassandra MCP Server by CData
Apache Cassandra MCP Server by CData
Datetime MCP Server
这个服务器允许用户使用自定义 URI 方案来存储、管理和总结笔记,并提供添加新笔记以及生成不同详细程度的摘要的功能。
Multi-Function Security MCP
Enables automated security detection and compliance auditing for cloud hosts and servers, including threat detection, baseline security checks, cryptocurrency miner detection, log analysis, and real-time monitoring through API and web dashboard.
Test
测试 (cè shì)
Minimal MCP
A basic educational MCP server that provides simple tools for mathematical calculations, text manipulation, and time retrieval. Designed for learning MCP implementation patterns and development purposes.
@servicestack/mcp
为 ServiceStack API 提供的 MCP 服务器
tauri-plugin-mcp
Enables AI assistants to automate and test Tauri desktop applications through the Model Context Protocol. It provides tools for app management, UI interaction, and state inspection across multiple platforms without requiring CDP dependencies.
MCP Memory SQLite
Provides persistent memory and knowledge graph capabilities for AI assistants using local SQLite storage. Enables creating, searching, and managing entities, relationships, and observations with vector search support across conversations.
MCP Cookie Server
A Model Context Protocol server that provides positive reinforcement for LLMs by awarding 'cookies' as treats through a jar-based economy system where Claude can earn cookies based on self-reflection about response quality.
browser-use MCP Server
镜子 (jìng zi)