Fastmcp Task Server
A comprehensive FastMCP task management server ready for Railway deployment
Ask AI about Fastmcp Task Server
Powered by Claude Β· Grounded in docs
I know everything about Fastmcp Task Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
FastMCP Task Manager Server
A comprehensive task management server built with FastMCP, ready for deployment on Railway.
Features
π οΈ Tools (Actions)
create_task- Create new tasks with title, description, priority, due date, and tagsget_task- Retrieve a specific task by IDupdate_task- Update task detailsdelete_task- Delete a tasklist_tasks- List all tasks with optional filtering by status or tagcomplete_task- Mark a task as completedget_task_stats- Get task statistics and overviewhealth_check- Server health status
π Resources (Data Access)
task://{task_id}- Get detailed formatted information about a specific tasktasks://all- Get a formatted summary of all tasks
π¬ Prompts (Templates)
task_planning_prompt- A helpful prompt for task planning and organization
Data Models
Task Status
todo- Planned but not startedin_progress- Currently being worked oncompleted- Finishedcancelled- Cancelled
Priority Levels
low- Nice to have, no rushmedium- Normal priorityhigh- Important, should be done soonurgent- Critical, needs immediate attention
Quick Start
Local Development
- Install dependencies:
pip install -r requirements.txt
- Run the server:
python main.py
The server will start on http://localhost:8000
Deploy to Railway
- Create a new Railway project
- Connect your GitHub repository
- Railway will automatically detect the Python app and deploy it
- The server will be available at your Railway app URL
Manual Railway Deployment
If you prefer manual deployment:
- Install Railway CLI:
npm install -g @railway/cli
- Login and deploy:
railway login
railway init
railway up
Environment Variables
PORT- Server port (automatically set by Railway)PYTHON_VERSION- Python version (set to 3.11 in railway.toml)
API Examples
Creating a Task
# Using the FastMCP tool
create_task({
"title": "Complete project documentation",
"description": "Write comprehensive docs for the new feature",
"priority": "high",
"due_date": "2025-07-15T10:00:00Z",
"tags": ["documentation", "project"]
})
Listing Tasks
# Get all tasks
list_tasks()
# Get only completed tasks
list_tasks(status="completed")
# Get tasks with specific tag
list_tasks(tag="urgent")
Getting Task Info
# Get task by ID
get_task("1")
# Get formatted task resource
# Access resource: task://1
Architecture
This FastMCP server uses:
- FastMCP Framework for MCP protocol handling
- Pydantic for data validation and serialization
- In-memory storage (replace with database for production)
- Type hints for automatic schema generation
- Decorator-based tool and resource definitions
Production Considerations
For production use, consider:
- Database Integration: Replace in-memory storage with PostgreSQL, MongoDB, etc.
- Authentication: Add user authentication and authorization
- Persistence: Implement data persistence across server restarts
- Monitoring: Add logging and monitoring
- Rate Limiting: Implement rate limiting for API calls
- Backup: Set up data backup strategies
Example Use Cases
- Personal Task Management: Individual productivity tracking
- Team Collaboration: Shared task lists and project management
- AI Assistant Integration: Let AI assistants help manage your tasks
- Workflow Automation: Integration with other tools and services
- Project Planning: Break down projects into manageable tasks
Testing the Server
Once deployed, you can test the server using any MCP-compatible client or by making direct HTTP requests to the endpoints.
Health Check
curl https://your-railway-app.railway.app/health
MCP Client Integration
Configure your MCP client to connect to your Railway URL to access all tools, resources, and prompts.
Support
For FastMCP documentation and support:
