ataur39n-sharif
MCP Serverataur39n-sharifpublic

mcp server

使用 TypeScript 和 Express.js 构建的模型上下文协议(MCP)服务器,支持 HTTP 和 stdio 通信。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
-
License

About This Server

使用 TypeScript 和 Express.js 构建的模型上下文协议(MCP)服务器,支持 HTTP 和 stdio 通信。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Model Context Protocol (MCP) Server

This project implements a Model Context Protocol server using TypeScript and Express.js. It provides both HTTP and stdio-based transport layers for MCP communication.

Features

  • Express.js based HTTP server implementation
  • Stdio-based transport layer support
  • Session management for client connections
  • Built-in tools and resources:
    • Basic arithmetic operations
    • BMI calculator
    • Dynamic greeting generator
    • Weather data fetching (example of external API integration)

Prerequisites

  • Node.js (Latest LTS version recommended)
  • TypeScript
  • npm or pnpm package manager

Installation

# Install dependencies
pnpm install

# Build the project
pnpm run build

Usage

Starting the HTTP Server

# Development mode with hot reload
pnpm run dev

# Production mode
pnpm start

The server will start on port 3000 by default.

Using the Stdio Transport

Run the stdio-based server:

ts-node stdio-index.ts

Project Structure

  • index.ts - Main HTTP server implementation
  • stdio-index.ts - Stdio transport implementation
  • dist/ - Compiled JavaScript output
  • tsconfig.json - TypeScript configuration

Available Tools

  1. Addition Tool

    • Adds two numbers
    • Parameters: a and b (numbers)
  2. BMI Calculator

    • Calculates Body Mass Index
    • Parameters: weightKg and heightM
  3. Dynamic Greeting

    • Generates personalized greetings
    • Resource template: greeting://{name}
  4. Weather Fetcher

    • Fetches weather data for a given city
    • Parameter: city (string)

Development

Building

pnpm run build

Running Tests

# Add test commands here once implemented

License

ISC

Quick Start

1

Clone the repository

git clone https://github.com/ataur39n-sharif/mcp-server
2

Install dependencies

cd mcp-server
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerataur39n-sharif
Repomcp-server
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation