mcp-server-template
A starting point for an MCP Server template that can be customized and extended.
The MCP Server template provides a foundational setup for creating a Model Context Protocol server. It includes a simple string reversal tool and supports both stdio and Server-Sent Events (SSE) transports. The server is implemented in TypeScript, ensuring a robust and type-safe development process. The template is designed to be easily duplicated and customized, allowing developers to create their own MCP server instances with minimal setup. It also includes a full build process, making it easy to transition from development to production.
Features
- Simple string reversal tool
- Support for both stdio and SSE transports
- TypeScript implementation with full build process
MCP Tools
- reverse: Takes a string input and returns it reversed.
MCP Resources
- {'name': 'greeting://hello', 'description': 'A welcome greeting'}
- {'name': 'welcome://info', 'description': 'Information about the server and its capabilities'}
Usage with Different Platforms
Testing with MCP Inspector
bash
npx fastmcp inspect server.ts
Running the Server
bash
# Build and run with stdio transport (default)
bash run-server.sh
# Or, to run with SSE transport
TRANSPORT_TYPE=sse npm run start
Development
bash
# Run in development mode with hot reloading
npm run dev
# Watch for changes and rebuild automatically
npm run watch
Building
bash
# Build TypeScript to JavaScript
npm run build
Related MCP Servers
View all developer_tools servers →context7
by upstash
Context7 MCP provides up-to-date, version-specific documentation and code examples directly into your prompt, enhancing the capabilities of LLMs by ensuring they use the latest information.
Sequential Thinking
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Everything MCP Server
by modelcontextprotocol
The Everything MCP Server is a comprehensive test server designed to demonstrate the full capabilities of the Model Context Protocol (MCP). It is not intended for production use but serves as a valuable tool for developers building MCP clients.
exa-mcp-server
by exa-labs
A Model Context Protocol (MCP) server allows AI assistants to use the Exa AI Search API for real-time web searches in a secure manner.
repomix
by yamadashy
Repomix is a tool that packs your codebase into AI-friendly formats, making it easier to use with AI tools like LLMs.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.