<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/deploy-any-ml-model-rag-or-agent-as-an-mcp-server-wsfjmx927" -->

---
title: Deploy any ML model, RAG or Agent as an MCP server
description: LitServe now supports MCP (Model Context Protocol) integration through a dedicated endpoint, allowing any ML model, RAG system, or AI agent to be deployed as...
canonical: https://daily.dev/posts/deploy-any-ml-model-rag-or-agent-as-an-mcp-server-wsfjmx927
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Deploy any ML model, RAG or Agent as an MCP server | daily.dev
og:description: LitServe now supports MCP (Model Context Protocol) integration through a dedicated endpoint, allowing any ML model, RAG system, or AI agent to be deployed as...
og:url: https://daily.dev/posts/deploy-any-ml-model-rag-or-agent-as-an-mcp-server-wsfjmx927
og:image: https://api.daily.dev/og/posts/WSfjmX927.png
og:image:alt: Deploy any ML model, RAG or Agent as an MCP server
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy any ML model, RAG or Agent as an MCP server

**[Daily Dose of Data Science \| Avi Chawla \| Substack](https://daily.dev/sources/dailydoseofds)** · 4 min read · 36 upvotes · 0 comments

## Summary

LitServe now supports MCP (Model Context Protocol) integration through a dedicated endpoint, allowing any ML model, RAG system, or AI agent to be deployed as an MCP server. This eliminates the need for custom integration code for each application. The implementation involves defining input schemas, setup methods, and inference logic in a simple Python class structure. The article also covers a 4-part MCP crash course and demonstrates deploying a Qwen 3 Agentic RAG system using CrewAI, Firecrawl, and LitServe.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.dailydoseofds.com/p/deploy-any-ml-model-rag-or-agent>

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#machine-learning](https://daily.dev/tags/machine-learning), [#mcp](https://daily.dev/tags/mcp), [#rag](https://daily.dev/tags/rag)

[View this post on daily.dev](https://daily.dev/posts/deploy-any-ml-model-rag-or-agent-as-an-mcp-server-wsfjmx927)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Deploy any ML model, RAG or Agent as an MCP server","url":"https://daily.dev/posts/deploy-any-ml-model-rag-or-agent-as-an-mcp-server-wsfjmx927","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/deploy-any-ml-model-rag-or-agent-as-an-mcp-server-wsfjmx927"},"datePublished":"2025-06-18T20:29:20.358Z","dateModified":"2025-07-28T02:18:11.850Z","description":"LitServe now supports MCP (Model Context Protocol) integration through a dedicated endpoint, allowing any ML model, RAG system, or AI agent to be deployed as...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d8325ececc949ce05ea2c91a40004fea?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d8325ececc949ce05ea2c91a40004fea?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Daily Dose of Data Science | Avi Chawla | Substack","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Daily Dose of Data Science | Avi Chawla | Substack","logo":"https://media.daily.dev/image/upload/s--4IHQgTOw--/f_auto/v1710503712/logos/dailydoseofds","url":"https://daily.dev/sources/dailydoseofds"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/deploy-any-ml-model-rag-or-agent-as-an-mcp-server-wsfjmx927","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":36},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,machine-learning,mcp,rag","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Daily Dose of Data Science | Avi Chawla | Substack","item":"https://daily.dev/sources/dailydoseofds"},{"@type":"ListItem","position":3,"name":"Deploy any ML model, RAG or Agent as an MCP server"}]}
```

