Skip to main content
Glama
Apify MCP Server Template

Apify MCP Server Template

by Anwesh43

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.


Related MCP server: Skeleton MCP Server

๐Ÿš€ 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

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      A template repository for building Model Context Protocol (MCP) servers that enables developers to create interactive AI agents with real-time bidirectional communication capabilities through WebSocket and SSE endpoints.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A template project for building Model Context Protocol servers with FastMCP framework, Docker support, and example CRUD API implementation to help developers quickly bootstrap their own MCP servers.
      6
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A comprehensive guide and template collection for building model Context Protocol (MCP) servers using FastMCP and deploying them to Google Cloud Run.
      1
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A deployment template for running Model Context Protocol servers as Vercel Functions. It provides a foundation for developers to build and host custom tools, prompts, and resources with optimized execution for MCP client integration.
      MIT