Demonstrates an API-first Model Context Protocol approach with a FastAPI backend and a Next.js client for todo management.
This project showcases an API-first approach to the Model Context Protocol (MCP), featuring a FastAPI backend that simultaneously exposes both a traditional REST API and a dedicated MCP endpoint. It provides a robust todo service where the backend acts as the single source of truth, offering its capabilities through both REST endpoints and MCP tools. A Next.js frontend, designed to be thin, consumes the REST API for its user interface while also enabling automated workflows via MCP. This architecture allows assistants within MCP-compatible clients to directly invoke the same server-side tools utilized by the UI, streamlining development and ensuring consistent logic across different interaction paradigms.