Apify MCP Server Template
by Anwesh43
README.md
# Ollama-Apify-MCP
Bring powerful **local AI** into your Apify workflows.
This project connects **Ollamaβs locally-run language models** with the **Model Context Protocol (MCP)** and Apifyβs scraping & automation platform. It enables you to process scraped data, extract insights, and generate intelligent responses β all **without external APIs**.
---
## π§ Overview
The **Ollama-Apify-MCP Actor** bridges Apify workflows with local LLMs via MCP, allowing AI-driven analysis and reasoning while preserving privacy and reducing costs.
---
## π Key Features
- π **Local LLM integration** β Run models like *Llama, Mistral, CodeLlama,* and more using Ollama
- π§© **MCP-based communication** β Standards-compliant protocol for tool interaction
- βοΈ **Automatic context & preprocessing** β Improves model response quality
- π οΈ **Extensible tool architecture** β Easily add custom MCP tools & resources
- π **Robust error handling & retries** β Reliable execution in workflows
---
## π¦ Quick Start
Use as in cursor, copilot, claude code or desktop
```
{
"mcpServers": {
"ollama-apify-mcp": {
"url": "https://lenticular-negative--ollama-apify-mcp.apify.actor/mcp?token={YOUR_TOKEN}"
}
}
}
```
### π» Run Locally
```bash
pip install -r requirements.txt
APIFY_META_ORIGIN=STANDBY python -m src
```
Server runs at:
```
http://localhost:3000/mcp
```
---
### βοΈ Deploy to Apify
1. Push the repo to GitHub
2. Add it as an Actor in Apify Console
3. Enable **Standby Mode**
4. Deploy
MCP endpoint:
```
https://lenticular-negative--ollama-apify-mcp.apify.actor/mcp
```
Include your API token:
```
Authorization: Bearer <APIFY_TOKEN>
```
## π― Use Cases
- π Analyze & summarize scraped web data
- π Privacy-first local LLM processing
- β‘ Low-latency on-device inference
- π§± Build AI tools inside Apify workflows
---
## π§© Requirements
- Python 3.7+
- Ollama installed locally
- Apify CLI (for deployment)
---
## β€οΈ Contributing
PRs and feature ideas are welcome β feel free to extend tools, improve docs, or share sample workflows.
---
## π License
MIT License
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues