@mcpdotdirect/template-mcp-server
Template to quickly set up your own MCP server
Overview
@mcptdotdirect/template-mcp-server is a CLI tool designed to help developers quickly set up their own Model Context Protocol (MCP) server.
To use the template, you can either run it using npx or npm: bash # with npx npx @mcpdotdirect/create-mcp-server # Or with npm npm init @mcpdotdirect/create-mcp-server After setting up, install dependencies and start the server using npm commands.
- Dual Transport Support: Operate your MCP server over stdio or HTTP. - TypeScript Support: Full TypeScript integration for enhanced type safety. - MCP SDK: Built on the official Model Context Protocol SDK. - Extensibility: Easily add custom tools, resources, and prompts.
- Setting up a custom MCP server for AI applications.
- Developing tools that require context-aware interactions.
- Rapid prototyping of server-based applications using the MCP framework.
Add to your AI client
Use these steps to connect @mcpdotdirect/template-mcp-server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"template-mcp-server-mcpdotdirect": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-template-mcp-server-mcpdotdirect"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"template-mcp-server-mcpdotdirect": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-template-mcp-server-mcpdotdirect"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"template-mcp-server-mcpdotdirect": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-template-mcp-server-mcpdotdirect"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"template-mcp-server-mcpdotdirect": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-template-mcp-server-mcpdotdirect"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"template-mcp-server-mcpdotdirect": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-template-mcp-server-mcpdotdirect"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"template-mcp-server-mcpdotdirect": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-template-mcp-server-mcpdotdirect"
]
}
}
}FAQ
Can I use other package managers?
Yes! You can use npm, yarn, pnpm, or bun to manage your dependencies.
Is there documentation available?
Yes! For more information, visit the [MCP Documentation](https://modelcontextprotocol.io/introduction).
What is the license for this project?
This project is licensed under the MIT License.