发现优秀的 MCP 服务器

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

全部86,267
MCP Student Assistant

MCP Student Assistant

An MCP server that provides student-focused tools such as attendance lookup, marks calculation, notes search, college rules access, and a math calculator, with a natural-language CLI client powered by Groq's Llama 3.3 70B.

Actual Budget MCP Server

Actual Budget MCP Server

Enables AI assistants to interact with Actual Budget for personal finance management through natural language, supporting transactions, account balances, budget tracking, spending analysis, and payment searches.

agent-sandbox-mcp

agent-sandbox-mcp

Enables AI agents to create, manage, and execute code in isolated Firecracker microVM sandboxes via the MCP protocol, with support for sandbox lifecycle and file operations.

SMB AI Command Platform MCP Server

SMB AI Command Platform MCP Server

Enables AI assistants to interact with SMB platform APIs for querying business data, managing tasks, accessing connectors, dashboards, and monitoring security.

calc-mcp

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!

MCP Server Starter

MCP Server Starter

A production-minded Python starter for exposing typed tools over the Model Context Protocol with FastAPI.

d3p MCP Server

d3p MCP Server

MCP server for the digital3 agent protocol (d3p) — exposes all d3p services as MCP tools that any MCP client can call.

note-mcp

note-mcp

Unofficial MCP server for note.com using cookie-based authentication to manage notes and drafts via internal APIs.

mcp-mediawiki-crunchtools

mcp-mediawiki-crunchtools

A secure MCP server for interacting with MediaWiki instances, allowing users to search, read, create, and manage wiki content like pages, categories, and files. It supports both public and private wikis with comprehensive authentication for full read and write operations.

Jobless MCP

Jobless MCP

Personalized job search inside Claude. Get ranked job matches based on your actual skills, not keywords.

AgentRoom MCP Server

AgentRoom MCP Server

An MCP server that provides coordination tools (claim, release, broadcast, state) for concurrent coding agents working on a CRDT-merged shared filesystem, ensuring no edits are lost and enabling collaborative task completion.

Trello MCP Server by CData

Trello MCP Server by CData

Trello MCP Server by CData

DevInsight MCP

DevInsight MCP

Enables Claude to inspect, analyze, and grade local Git repositories with tools for stats, TODO scanning, git history, large file detection, health scores, and tech stack fingerprinting.

mcp-ux-vision

mcp-ux-vision

Enables AI-powered visual analysis of webpages for UI/UX assessment, including screenshot capture, element detection, accessibility auditing, and comprehensive JSON reporting.

Bridge MCP Server

Bridge MCP Server

Bridge is a hosted MCP server that connects AI models to business tools like ClickUp and a repository of pre-built workflow skills. It enables direct interaction with project management tools and automated instruction sets through natural language.

Douban MCP Server

Douban MCP Server

Enables interaction with Douban content including searching and reviewing books, movies, TV shows, and browsing group discussions. Supports searching by ISBN or keywords, retrieving reviews, and managing group topics with filtering capabilities.

Dev.to Blog Publisher MCP Server

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.

MCP Cobot Server

MCP Cobot Server

Controls a MyCobot280 robot arm through MCP tools, allowing joint angle manipulation, home position, LED color, and dance routines.

NetBox MCP Server

NetBox MCP Server

A read-only FastMCP server that enables AI assistants to query and retrieve network infrastructure information from NetBox using natural language.

VoiceVox MCP Server

VoiceVox MCP Server

Provides text-to-speech functionality via VoiceVox, enabling Claude to generate spoken audio from text using various voices.

kavel-mcp

kavel-mcp

Enables browsing and generating AI photo and video effects via Kavel's generators, crafting model-tuned prompts and opening the appropriate tool, no API key required.

Insurance Campaign MCP Server

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.

SkyFi MCP Server

SkyFi MCP Server

An MCP server providing AI agents with access to satellite imagery, geospatial intelligence, and billing management through the SkyFi platform.

tessera-mcp

tessera-mcp

Enables AI agents to manage a fictional B2B workspace SaaS (Tessera) with tools for ticketing, invoicing, customer management, and trial extensions, featuring a human-in-the-loop confirm pattern for safety.

android-shizuku-mcp

android-shizuku-mcp

Enables LLM agents to control Android devices securely via Shizuku and Termux:API, providing a universal shell tool for command execution and persistent sessions.

peaka-mcp-server

peaka-mcp-server

为 Peaka 提供的 MCP 服务器实现方案

Procuradoria Geral do Estado BA: Dívida Ativa

Procuradoria Geral do Estado BA: Dívida Ativa

Consulta de dívida ativa em fonte oficial da PGE-BA, com leitura somente e pagamento por uso.

agent-mcp-tools-1

agent-mcp-tools-1

An MCP server starter for ticket ordering, offering a timeslots resource and an order_tickets tool via Streamable HTTP, deployable to AWS Lambda.

agent-quality-oss

agent-quality-oss

An MCP server that provides 46 tools for construction quality management, enabling users to generate and review documents like ITP, NCR, and test reports using a domain ontology and legal standards.

code-review-mcp

code-review-mcp

An MCP server that provides local code quality analysis for AI coding assistants, supporting file analysis, git diff review, and full project scanning with quality scoring.