Supports package management and script execution for building and running the MCP server
Connects to a WebSocket echo server, enabling real-time bidirectional communication through the Echo resource
Built with TypeScript, enabling strongly-typed tool and resource development with compile-time type checking
Uses Zod for schema validation in tool development, providing type safety and input validation for MCP tools
mcp-remote-server
A Model Context Protocol (MCP) server built with mcp-framework.
Quick Start
The server will run on port 1947 at endpoint /mcp by default.
Project Structure
Included Tools
XkcdTool
- Name:
xkcd
- Description: Fetches a random xkcd comic image and its alt text.
Included Resources
DynamicResource
- URI:
resource://market-data
- Description: Fetches data from JSONPlaceholder (free, no API key required).
EchoResource
- URI:
resource://echo
- Description: Connects to a public WebSocket echo server (
wss://echo.websocket.org
).
StaticResource
- URI:
resource://static
- Description: Returns static JSON data for testing.
Adding Components
You can add more tools using the CLI:
Tool Development Example
Running and Testing
- Make changes to your tools or resources as needed.
- Run
npm run build
to compile. - Start the server with
npm start
. - The server will automatically load your tools and resources on startup.
Server Details
- Port: 1947
- Endpoint:
/mcp
- Transport: HTTP stream
- Session management: Enabled
- CORS: Enabled for all origins
Learn More
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that provides tools for fetching xkcd comics and resources for dynamic data retrieval, WebSocket echo functionality, and static JSON data testing.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides web content fetching and conversion capabilities.Last updated -44582JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.Last updated -121PythonMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server implementation that enables real-time data communication between web pages and client applications through WebSocket connections.Last updated -2637TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol server implementation that provides basic utility tools including echo, uppercase text conversion, and mathematical calculations.Last updated -3673JavaScript