The Model Context Protocol (MCP) enables standardized communication between AI applications and external tools. Agentor’s LiteMCP makes it easy to build MCP servers that work with any MCP client.
What is LiteMCP?
LiteMCP is a FastAPI-native MCP server implementation. Unlike other solutions, it integrates directly with FastAPI using standard ASGI patterns, making it easy to add to existing applications.
LiteMCP vs FastMCP
Quick Start
Create a basic MCP server:
Your MCP server is now running at http://localhost:8000/mcp!
Server Components
Tools are functions that agents can call:
Prompts
Prompts are reusable templates for common tasks:
Resources
Resources provide access to data or content:
Authentication & Context
Access request headers, cookies, and authentication tokens:
Integration Patterns
Standalone Server
Run LiteMCP as a standalone application:
With Existing FastAPI App
Integrate MCP into your existing FastAPI application:
Now your MCP endpoints are available at /mcp alongside your existing API.
With ASGI Servers
LiteMCP is a native ASGI application:
Run with any ASGI server:
Using MCP Servers with Agents
Connect to HTTP MCP Server
Connect to Celesto MCP Hub
Access shared MCP servers via Celesto:
Complete Example
Here’s a full-featured MCP server:
Best Practices
Deployment
Deploy your MCP server to Celesto:
Your MCP server will be available at:
Next Steps
Last modified on May 5, 2026