mcp-server-factory

jayessdeesea/mcp-server-factory

3.1

If you are the rightful owner of mcp-server-factory and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Java-based Model Context Protocol (MCP) server designed to help understand and build other MCP servers.

The MCP Server Factory is a Java-based server designed to facilitate the understanding and construction of Model Context Protocol (MCP) servers. It serves as both a learning tool and a guide, focusing on the core components of MCP such as tools, resources, and prompts. The project provides templates and best practices for building MCP servers, emphasizing simplicity, reusability, and maintainability. The server is built using Java with the Spring Framework, log4j2 for logging, and Maven for build management. It adheres to design principles like KISS, DRY, YAGNI, and SOLID, ensuring a clean and efficient codebase. The project structure is well-organized, with a clear separation of concerns and comprehensive documentation. It includes a variety of tools and resources to aid in the development and deployment of MCP servers.

Features

  • Tools Section: Includes tools like 'explain_concept' for detailed explanations of MCP concepts and various task planner tools for generating task plans.
  • Resources Section: Provides documentation on MCP topics through resources like 'mcp://factory/documentation/{topic}'.
  • Prompts Section: Offers a 'tool_implementation_guide' for step-by-step implementation of MCP tools in different languages.

Usages

usage with java

java
# Run the server
java -jar target/mcp-server-factory-1.0-SNAPSHOT-jar-with-dependencies.jar

usage with maven

bash
# Build the project
mvn clean package

# Run the tests
mvn test

Tools

  1. explain_concept

    Provides detailed explanations of MCP concepts (tool, resource, prompt, server, client).

  2. code_cleanup_planner

    Generates a task plan for code cleanup objectives.

  3. feature_implementation_planner

    Generates a task plan for feature implementation objectives.

  4. general_task_planner

    Generates a task plan for general objectives.

  5. local_mcp_deployment_planner

    Generates a task plan for deploying local MCP servers with critical clean and test steps that abort deployment on failure.