kritsanan1
MCP Serverkritsanan1public

mcp server

一个简单的MCP服务器实现,支持WebSocket和REST API。

Repository Info

0
Stars
0
Forks
0
Watchers
1
Issues
JavaScript
Language
-
License

About This Server

一个简单的MCP服务器实现,支持WebSocket和REST API。

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

MCP (Model Context Protocol) Server

A simple MCP server implementation with WebSocket and REST API support.

Features

  • WebSocket server for real-time communication
  • REST API endpoints
  • Static file serving
  • CORS support

Getting Started

Prerequisites

  • Node.js (v14 or later)
  • npm (comes with Node.js)

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd mcp-server
    
  2. Install dependencies:

    npm install
    

Running the Server

Start the server with the following command:

node server.js

The server will start on port 3000 by default. You can change the port by setting the PORT environment variable.

API Endpoints

  • GET / - Server status
  • POST /api/echo - Echo the provided message
    • Request body: { "message": "Hello" }
    • Response: { "echo": "Hello" }

WebSocket

The WebSocket server runs on the same port as the HTTP server. Connect using:

ws://localhost:3000

Testing

Open your browser and navigate to:

http://localhost:3000

You'll find a test page where you can:

  • Test WebSocket connections
  • Send and receive messages
  • Test the REST API

License

This project is open source and available under the MIT License.

Quick Start

1

Clone the repository

git clone https://github.com/kritsanan1/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

Ownerkritsanan1
Repomcp-server
LanguageJavaScript
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