MCP Enhanced Server
Allows deploying the MCP server to Cloudflare Workers, utilizing D1 database for task management and environment variables for configuration.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Enhanced Serverread the file src/index.ts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Enhanced Server v2.0.0
Enhanced MCP (Model Context Protocol) Server with full 2025-03-26 specification support:
Tools - With annotations, outputSchema, structuredContent, resource_link
Resources - URI-identified data with subscriptions and list change notifications
Prompts - Templated messages and workflows with argument schemas
Elicitation - Server-initiated user input requests
Tasks - Async long-running operations with progress tracking
Streamable HTTP - Production-ready HTTP transport with session management
Auth - Bearer token authentication for remote deployments
Origin Validation - DNS rebinding attack prevention
Quick Start
npm install
npm run build
npm startRelated MCP server: MCP Complete Implementation Guide
Transport Modes
Stdio (default)
npm startStreamable HTTP
MCP_TRANSPORT=http MCP_PORT=3000 npm startStreamable HTTP with Auth
MCP_TRANSPORT=http MCP_PORT=3000 MCP_AUTH_TOKEN=your-secret-token npm startFeatures
Resources
Resource | URI | Description |
Server Info |
| Server name, version, features |
Config Info |
| Transport, auth, environment |
Project Files |
| Template-based file access |
Prompts
Prompt | Description | Arguments |
| Review code quality | code, language |
| Explain code behavior | code, detail_level |
| Generate unit tests | code, framework |
| Debug code errors | code, error |
Tools
Tool | readOnly | destructive | idempotent | Description |
| ✓ | ✗ | ✓ | Read file contents |
| ✗ | ✓ | ✓ | Write file (overwrites) |
| ✓ | ✗ | ✓ | List directory contents |
| ✗ | ✓ | ✗ | Delete a file |
| ✓ | ✗ | ✓ | Regex search in code |
| ✗ | ✓ | ✗ | Execute shell command |
| ✓ | ✗ | ✓ | Request user confirmation |
| ✓ | ✗ | ✓ | Request user input |
| ✓ | ✗ | ✓ | Get async task status |
| ✗ | ✓ | ✓ | Cancel a running task |
| ✓ | ✗ | ✓ | List all tasks |
| ✗ | ✗ | ✗ | Start batch processing |
| ✓ | ✗ | ✓ | Weather data (structured output) |
| ✓ | ✗ | ✓ | System information (structured output) |
| ✓ | ✗ | ✓ | List resources as resource links |
Environment Variables
Variable | Default | Description |
|
| Transport: |
|
| HTTP port |
|
| HTTP host |
| - | Bearer token for auth (optional) |
Cloudflare Workers Deployment
See cloudflare/ directory for Workers deployment with D1 database.
cd cloudflare
npm install
wrangler d1 create mcp-enhanced-tasks
# Update database_id in wrangler.toml
wrangler d1 execute mcp-enhanced-tasks --file=src/schema.sql
wrangler deployWorkers Environment Variables
Set via Cloudflare Dashboard or wrangler secret put:
MCP_AUTH_TOKEN- Authentication tokenMCP_ALLOWED_ORIGINS- Comma-separated allowed origins
Architecture
src/
├── index.ts # Main entry, server setup, all features
├── tools/
│ ├── annotations.ts # Tool Annotation type definitions
│ └── registry.ts # Tool registry with Zod validation
├── resources/
│ ├── manager.ts # Resource lifecycle manager
│ └── tools.ts # Resource tools
├── prompts/
│ ├── manager.ts # Prompt lifecycle manager
│ └── builtin.ts # Built-in prompt templates
├── elicitation/
│ ├── manager.ts # Elicitation request/response manager
│ └── tools.ts # Elicitation tools
└── tasks/
├── manager.ts # Async task lifecycle manager
└── tools.ts # Task toolsDebug
npx @modelcontextprotocol/inspector node dist/index.jsThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/21967201/mcp-enhanced-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server