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
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
- AsecurityAlicenseAqualityModel Context Protocol server for fetching web content and processing images. This allows Claude Desktop (or any MCP client) to fetch web content and handle images appropriately.Last updated -127815JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides web content fetching and conversion capabilities.Last updated -4892JavaScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that integrates with Cursor IDE, providing real-time communication, modern web dashboards, and extensible tools via SSE and WebSocket connections.Last updated -1,1331Python
- -securityAlicense-qualityA Model Context Protocol server that enables Claude AI to interact with Xano databases, providing comprehensive database operations, file management, and request history tracking through a standardized interface.Last updated -PythonMIT License