Skip to main content
Glama

MCP Agent - AI Expense Tracker

by dev-muhammad
mcp_server.py•832 B
#!/usr/bin/env python3 """MCP Server for Expense Tracker API""" from main import app from fastapi import FastAPI from fastapi_mcp import FastApiMCP from config import settings import uvicorn # Create MCP integration mcp = FastApiMCP( app, name="Expense Tracker MCP", exclude_operations=[] # Include all operations ) # Create MCP app mcp_app = FastAPI( title="Expense Tracker MCP Server", version="1.0.0" ) # Mount the MCP server mcp.mount_http(mcp_app) if __name__ == "__main__": print(f"šŸ”§ Starting Expense Tracker MCP Server...") print(f"🌐 MCP Server: http://{settings.MCP_HOST}:{settings.MCP_PORT}") print(f"šŸ¤– Ready for AI assistant integration") uvicorn.run( mcp_app, host=settings.MCP_HOST, port=settings.MCP_PORT, log_level="info" )

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/dev-muhammad/MCPAgent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server