Cover image
Try Now
2025-03-10

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

Template for MCP Server

A starting point for an MCP Server.

DUPLICATE ME

The whole idea here is for you to take this for your own. Running this to create a new folder with your own copy of this template (git removed and replaced with a new one).

replace mcp-server with name of your choice:

npx make-mine https://github.com/bladnman/mcp-server-template.git <mcp-server>

Features

  • Simple string reversal tool
  • Support for both stdio and SSE transports
  • TypeScript implementation with full build process

Tools

reverse

Takes a string input and returns it reversed.

Example:

  • Input: "hello world"
  • Output: "dlrow olleh"

Resources

  • greeting://hello: A welcome greeting
  • welcome://info: Information about the server and its capabilities

Getting Started

Testing with MCP Inspector

There's a way to test the server itself using a generic inspector tool which allows you to see the transiting message between the server and the client. It is dropping to shell and running this command.

npx fastmcp inspect server.ts

And then going to the url it provides (likely): http://localhost:5173

and for the current server that we're running here this server we will want to execute the run server.sh file that you see in the root directory as stdio with no arguments.

<full_path_to_server>/run-server.sh

Prerequisites

  • Node.js (v14 or higher)
  • npm

Installation

# Install dependencies
npm install

Running the Server

# Build and run with stdio transport (default)
bash run-server.sh

# Or, to run with SSE transport
TRANSPORT_TYPE=sse npm run start

By default, the SSE server runs on port 4000. Change in the CONST.ts file.

Development

# Run in development mode with hot reloading
npm run dev

# Watch for changes and rebuild automatically
npm run watch

Building

# Build TypeScript to JavaScript
npm run build

The built files will be in the dist directory.

License

ISC License

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • OffchainLabs
  • Go implementation of Ethereum proof of stake

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

    Reviews

    2 (1)
    Avatar
    user_NWQmKPGh
    2025-04-15

    As a dedicated user of the Nasdaq Data Link MCP by stefanoamorelli, I must say this product is exceptional for accessing comprehensive market data. The seamless integration and user-friendly interface make it a valuable tool for any investor or analyst. Highly recommended!