- Explore MCP Servers
- mcp-forge
Mcp Forge
What is Mcp Forge
MCP-Forge is a scaffolding tool designed to facilitate the creation of new MCP (Modular Capability Platform) servers. It streamlines the process of generating boilerplate code essential for building MCP-compatible servers.
Use cases
Use cases for MCP-Forge include developing custom MCP servers for specific applications, creating tools and resources that can be exposed through the MCP framework, and facilitating collaboration among developers working on modular service architectures.
How to use
To use MCP-Forge, install it via uv or pip. Create a new MCP server project by running mcp-forge new <project-name>, which will generate a complete project structure with necessary files and a basic server setup.
Key features
Key features of MCP-Forge include easy project creation, customizable project descriptions, and the ability to specify Python version requirements. It generates a well-organized directory structure with essential components for server development.
Where to use
MCP-Forge is primarily used in software development, particularly for building modular and extensible services that can integrate with various clients, including AI applications.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Forge
MCP-Forge is a scaffolding tool designed to facilitate the creation of new MCP (Modular Capability Platform) servers. It streamlines the process of generating boilerplate code essential for building MCP-compatible servers.
Use cases
Use cases for MCP-Forge include developing custom MCP servers for specific applications, creating tools and resources that can be exposed through the MCP framework, and facilitating collaboration among developers working on modular service architectures.
How to use
To use MCP-Forge, install it via uv or pip. Create a new MCP server project by running mcp-forge new <project-name>, which will generate a complete project structure with necessary files and a basic server setup.
Key features
Key features of MCP-Forge include easy project creation, customizable project descriptions, and the ability to specify Python version requirements. It generates a well-organized directory structure with essential components for server development.
Where to use
MCP-Forge is primarily used in software development, particularly for building modular and extensible services that can integrate with various clients, including AI applications.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
MCP-Forge
MCP-Forge is a scaffolding tool designed to quickly bootstrap new MCP (Model Context Protocol) server projects. It generates a well-structured project with boilerplate code, example tools, resources, and testing utilities, allowing you to focus on building your server’s capabilities.
⚠️ Early Project: This is an early version of MCP-Forge. The API, generated structure, and features might change as the MCP ecosystem evolves. Feedback and contributions are welcome!
Support Development
If you find this project useful, please consider supporting its development by making a donation:
Your support helps maintain and improve the project!
Features
- Generates a complete Python project structure for an MCP server.
- Provides a unified server entry point with required
--modeparameter to select between SSE and stdio transports. - Includes example tools (AddNumbers, DateDifference, etc.) and resources (HelloWorld, UserProfile).
- Sets up Pydantic models for clear input/output schemas.
- Uses
uvfor dependency management and task running.
Installation
It’s recommended to run mcp-forge using uvx (from uv), which handles temporary environments:
# Ensure uv is installed
uvx mcp-forge --help
Alternatively, you can install it globally or in a dedicated environment using pip:
pip install mcp-forge
mcp-forge --help
Usage
Creating a New MCP Server
The primary command is new, which scaffolds a new server project.
# Example using uvx (recommended)
uvx mcp-forge new my-awesome-server
# Example if installed globally/in environment
# mcp-forge new my-awesome-server
This command will:
- Create a new directory named
my-awesome-server. - Generate a complete project structure inside this directory (see below).
- Set up a basic server with example tools and resources ready to run.
Options for new command:
--descriptionor-d: Provide a custom description for your project (used inpyproject.tomlandREADME.md).uvx mcp-forge new my-project -d "My amazing MCP server"--python-versionor-p: Specify the minimum required Python version (default:>=3.10).uvx mcp-forge new my-project -p ">=3.11"
Generated Project Structure
MCP-Forge creates a project with the following structure:
my-awesome-server/ ├── my_awesome_server/ # Python package for your server code │ ├── __init__.py # Package initialization │ ├── server.py # Unified server entry point with mode selection │ ├── server_stdio.py # Implementation for stdio transport │ ├── server_sse.py # Implementation for SSE transport (HTTP) │ ├── interfaces/ # Base classes/interfaces for tools and resources │ │ ├── __init__.py │ │ ├── resource.py │ │ └── tool.py │ ├── resources/ # Implementation of resources │ │ ├── __init__.py │ │ ├── hello_world.py # Example static resource │ │ └── user_profile.py # Example dynamic resource with URI parameters │ ├── services/ # Services for managing tools and resources │ │ ├── __init__.py │ │ ├── resource_service.py # Handles resource registration and routing │ │ └── tool_service.py # Handles tool registration and execution │ └── tools/ # Implementation of tools │ ├── __init__.py │ ├── add_numbers.py # Example tool │ ├── date_difference.py # Example tool │ ├── reverse_string.py # Example tool │ ├── current_time.py # Example tool │ └── random_number.py # Example tool ├── pyproject.toml # Project metadata and dependencies (using Hatch) └── README.md # README template for the generated project
Next Steps After Generation
- Navigate into the newly created project directory:
cd my-awesome-server - Set up the Python environment and install dependencies:
uv venv uv pip install -e . - Run the server using the command-line executable with the required
--modeparameter:# After installation, you can use the server name as a command my-awesome-server --mode=sse # Run in SSE mode (HTTP server on 0.0.0.0:6969) my-awesome-server --mode=stdio # Run in stdio mode # Or run as a Python module uv run python -m my_awesome_server.server --mode=sse
About MCP
The Model Context Protocol (MCP) is a specification for enabling communication between language models (or other clients) and external tools/services (servers). It defines how servers can expose capabilities like tools and resources in a standardized way.
Learn more at the official MCP Documentation.
Contributing
Contributions to MCP-Forge are welcome! This is an early project, so there’s plenty of room for improvements and new features.
- Fork the repository (
mcp-forge) - Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file (if generated) or the source repository for details.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










