MCP Forge is a server generator tool that helps you create Model Context Protocol (MCP) servers for Smithery with Cursor IDE integration. It allows you to quickly scaffold new MCP servers from templates, integrate them with Cursor IDE, and deploy them to Smithery.
To install MCP Forge, run the following command in your terminal:
npm install
Start the MCP Forge server with:
npm start
When generating a new MCP server, you can choose from these templates:
To connect your MCP server with Cursor IDE, add this configuration to your ~/.cursor/mcp.json
file:
{
"mcpServers": {
"mcp-forge": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@your-username/mcp-forge",
"--config",
"{}"
]
}
}
}
This tool helps you create a new MCP server based on your selected template and configuration options.
Provides you with the necessary code and instructions to integrate your MCP server with the Cursor IDE.
Gives you step-by-step instructions for deploying your MCP server to Smithery, making it available for wider use.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "mcp-forge" '{"command":"npx","args":["-y","@smithery/cli@latest","run","@your-username/mcp-forge","--config","{}"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"mcp-forge": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@your-username/mcp-forge",
"--config",
"{}"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"mcp-forge": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@your-username/mcp-forge",
"--config",
"{}"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect