PostCrawl MCP Server

PostCrawl MCP Server

A Cloudflare Workers-based server that provides AI assistants with access to search and extract content from social media platforms, particularly Reddit, through the PostCrawl API.

Category
Visit Server

README

PostCrawl MCP Server

A Cloudflare Workers-based Model Context Protocol (MCP) server that provides access to the PostCrawl API for searching and extracting content from social media platforms, particularly Reddit.

Overview

PostCrawl is an API service that allows you to search for posts across social media platforms and extract their content. This MCP server provides a seamless interface to the PostCrawl API, enabling AI assistants to:

  • Search for posts with customizable parameters
  • Extract content from specific URLs
  • Retrieve posts with markdown formatting
  • Control extraction depth with simplified boolean parameter
  • Check API health status

Quick Start

Prerequisites

  • Node.js (latest LTS version)
  • Bun (recommended) or npm
  • A Cloudflare account (for deployment)
  • PostCrawl API key
  • MCP Inspector (for testing)

Installation

  1. Install dependencies:
npm install
  1. Start development server:
bun dev
  1. The server will be available at http://localhost:8787

Testing with MCP Inspector

The simplest way to test this MCP server is using MCP Inspector.

📖 See how-to-use.md for detailed step-by-step instructions with screenshots.

Quick overview:

  1. Install MCP Inspector: npx @modelcontextprotocol/inspector
  2. Use "Streamable HTTP" transport type
  3. Connect to: https://postcrawl.com/mcp
  4. Add Authorization header with your PostCrawl API key
  5. Test the available tools

Authentication

The server requires a PostCrawl API key provided as a Bearer token:

Authorization: Bearer YOUR_POSTCRAWL_API_KEY

Available MCP Tools

1. search

Search for posts across social media platforms.

Parameters:

  • query (string, required): Search query
  • page (int, optional): Page number (default: 1)
  • results (int, optional): Number of results (default: 10)
  • social_platforms (string[], optional): Social platforms to search

2. search_and_extract

Search for posts and extract their content in a single operation.

Same parameters as search with additional:

  • response_mode (string, optional): Response format - "raw" or "markdown" (default: "raw")
  • include_comments (boolean, optional): Include comments and replies (default: false)

3. extract

Extract content from specific URLs.

Parameters:

  • urls (string[], required): List of URLs to extract content from
  • include_comments (boolean, optional): Include comments and replies (default: false)
  • response_mode (string, optional): Response format - "raw" or "markdown" (default: "raw")

4. check_health

Check the health status of the PostCrawl API.

Parameters: None

Development Scripts

  • bun dev or npm run dev - Start development server
  • npm run deploy - Deploy to Cloudflare Workers
  • npm run type-check - Run TypeScript type checking
  • npm run cf-typegen - Generate Cloudflare Worker types

Deployment

Deploy to Cloudflare Workers:

npm run deploy

Configuration

The PostCrawl API configuration:

  • Base URL: https://edge.postcrawl.com
  • Default timeout: 30 seconds per request
  • Primary platforms: Reddit and TikTok
  • Response formats: Raw JSON and Markdown

Rate Limits

Rate limits depend on your PostCrawl API plan. The server includes appropriate error handling for rate limit responses.

Architecture

  • Hono: Web framework for Cloudflare Workers
  • agents/mcp: MCP agent framework
  • @modelcontextprotocol/sdk: MCP protocol implementation
  • zod: Runtime type validation
  • PostCrawl API: Social media content extraction service

Error Handling

The server provides comprehensive error handling for:

  • Missing or invalid authentication
  • PostCrawl API errors
  • Invalid request parameters
  • Network timeouts

License

This project is licensed under the ISC License.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured