template-mcp-server logo

template-mcp-server

by mcpdotdirect

A CLI tool to quickly get started building your very own MCP (Model Context Protocol) server using FastMCP. It provides a basic server setup with both stdio and HTTP transport options.

View on GitHub

Last updated: N/A

What is template-mcp-server?

This is a template for creating an MCP (Model Context Protocol) server using the FastMCP framework. It provides a pre-configured environment with basic server setup, transport options (stdio and HTTP), and a structure for defining MCP tools, resources, and prompts.

How to use template-mcp-server?

To use this template, you can use either npx @mcpdotdirect/create-mcp-server or npm init @mcpdotdirect/mcp-server. After creating the project, install dependencies using your preferred package manager (npm, yarn, pnpm, or bun) and start the server using npm start (stdio) or npm run start:http (HTTP). You can then connect to the server from Cursor or other MCP-compatible clients.

Key features of template-mcp-server

  • FastMCP Framework

  • Dual Transport Support (stdio/HTTP)

  • TypeScript Support

  • Extensible Architecture

Use cases of template-mcp-server

  • Building local development tools for Cursor

  • Creating shared tools for team collaboration

  • Developing MCP servers for web applications

  • Implementing custom tools and resources for specific workflows

FAQ from template-mcp-server

What is FastMCP?

FastMCP is a framework that simplifies the implementation of Model Context Protocol servers.

What are the transport methods supported?

The server supports stdio (command line) and HTTP (web) transport methods.

How do I connect to the server from Cursor?

You can connect to the server from Cursor by adding a new MCP server in the Cursor settings, specifying either the command for stdio mode or the URL for SSE mode.

How can I customize the server?

You can customize the server by adding custom tools, resources, and prompts, and by using environment variables to configure the HTTP port and host binding.

Where can I find more information about FastMCP and MCP?

You can find more information about FastMCP at FastMCP GitHub Repository and about MCP at MCP Documentation.