MCP Async Server
🚀 A high-performance Model Context Protocol (MCP) server implementation showcasing asynchronous task processing with robust status tracking and error handling.
✨ Features
- 🔄 Asynchronous Task Processing - Handle long-running operations efficiently
- 📊 Real-time Status Tracking - Monitor task progress with polling support
- 🧹 Automatic Resource Management - Smart task cleanup and memory management
- ⏱️ Timeout Handling - Configurable timeouts for tasks
- 🛡️ Robust Error Handling - Custom error types and comprehensive error reporting
- 📝 TypeScript Support - Full type safety and modern JavaScript features
- 🔍 Built-in Inspector - Debug and test your MCP server with ease
🚀 Quick Start
Prerequisites
- Node.js 20.x or higher
- npm 9.x or higher
Installing via Smithery
To install Async MCP Server for Claude Desktop automatically via Smithery:
Installation
Running the Server
Using the Inspector
📖 API Reference
Available Tools
process_task
Creates a new asynchronous task.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
input | string | ✅ | - | The input string to process |
delayMs | number | ❌ | 5000 | Processing delay in milliseconds |
timeoutMs | number | ❌ | 30000 | Task timeout in milliseconds |
check_task_status
Check the status of an existing task.
Parameter | Type | Required | Description |
---|---|---|---|
taskId | string | ✅ | The ID of the task to check |
Task States
Status | Description |
---|---|
🕒 pending | Task created but not started |
⚡ processing | Task is being processed |
✅ complete | Task completed successfully |
❌ error | Task failed |
⚙️ Configuration
Key configuration options in src/constants.ts
:
🛠️ Development
Project Structure
Development Commands
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
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.
This server implements the Model Context Protocol (MCP) to handle asynchronous tasks with real-time status tracking, robust error handling, and automatic resource management.
Related Resources
Related MCP Servers
- -securityAlicense-qualityMCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.Last updated -43TypeScriptMIT License
- -securityAlicense-qualityMCP Server provides a simpler API to interact with the Model Context Protocol by allowing users to define custom tools and services to streamline workflows and processes.Last updated -132TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides tools for managing todo items, including creation, updating, completion, deletion, searching, and summarizing tasks.Last updated -104TypeScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server that provides a simple sleep/wait tool, useful for adding delays between operations such as waiting between API calls or testing eventually consistent systems.Last updated -167JavaScript