Social Media Scraper - Custom MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Social Media Scraper - Custom MCP ServerPlease scrape this LinkedIn profile: https://linkedin.com/in/example-profile"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
What is MCP?
Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect with external data sources and tools. MCP servers act as bridges between AI models and various services, allowing for enhanced capabilities like real-time data access, API integrations, and custom tool execution.
Related MCP server: scraper-api-mcp
Features
This server exposes the following tools for an AI assistant to use:
LinkedIn Profile Scraping: Extract personal and company profile data
Facebook Profile Scraping: Fetch public profile information
Instagram Profile Scraping: Get profile data and basic information
Google Search: Perform web searches using Google Serper API
Installation
Step 1: Adding MCP to your Python project
We recommend using uv to manage your Python projects.
If you haven't created a uv-managed project yet, create one:
uv init custom-mcp-server
cd custom-mcp-serverStep 2: Install MCP Dependencies
Then add MCP to your project dependencies:
uv add "mcp[cli]"This will auto-generate files and folders similar to the project structure mentioned below, also create a .env file to securely store the API keys.
Step 3: Add Project Code
In the files generated look for main.py and copy paste the code given in main.py (repo).
Step 4: Install Additional Dependencies
uv add httpx python-dotenv fastmcpEnvironment Configuration
Step 1: API Keys Setup
RapidAPI Key:
Sign up at RapidAPI
Subscribe to the following APIs (Most Important):
Fresh LinkedIn Profile Data
Facebook Scraper3
Instagram Scraper Stable API
Google Serper API Key:
Sign up at Serper.dev
Get your API key from the dashboard
Step 2: Environment Variables
Create .env file in your project root with the following variables:
RAPIDAPI_KEY=your_rapidapi_key_here
SERPER_API_KEY=your_serper_api_key_hereUsage
Running with Claude Desktop
Step 1: Install the Server
You can install this server in Claude Desktop and interact with it right away by running:
uv run mcp install main.pyStep 2: Verify Installation
Later, go to Claude AI (desktop version) and you will see changes in the platform similar to the screenshot shown.
Step 3: Start Using the Tools
Paste the URLs of required platform and ask the AI to provide information of the mentioned URLs.
Example Usage
Please scrape this LinkedIn profile: https://linkedin.com/in/example-profileGet company information for: https://linkedin.com/company/example-companyTroubleshooting
If the MCP tools don't appear in Claude Desktop:
Step 1: End Claude Processes
Windows: Open Task Manager (Ctrl+Shift+Esc)
Mac: Open Activity Monitor
End all Claude-related processes
Step 2: Reinstall the Server
uv run mcp install main.pyStep 3: Restart Claude Desktop
Paste the URLs of required platform and ask the AI to provide information of the mentioned URLs.
Testing with MCP Inspector
Alternatively, you can test it with the MCP Inspector:
uv run mcp dev main.pyProject Structure
custom-mcp-server/
├── __pycache__/ # Python bytecode cache (auto-generated)
├── .venv/ # Virtual environment directory
├── .env # Environment variables (API keys)
├── .python-version # Python version specification
├── main.py # Main MCP server implementation
├── pyproject.toml # Project configuration and dependencies
├── README.md # Project documentation
└── uv.lock # UV lock file for reproducible buildsResponse Format
All tools return JSON-formatted strings containing the scraped data. Example response structure:
{
"success": true,
"data": {
"profile": {
"name": "John Doe",
"title": "Software Engineer",
"location": "San Francisco, CA",
"bio": "Passionate about technology..."
}
},
"timestamp": "2024-01-15T10:30:00Z"
}But using these tools via Claudes makes it readable.
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
In case of any queries, please leave a message or contact me via the email provided in my profile.
This server cannot be deployed
Maintenance
Related MCP Connectors
- mcpOAuthcom.curviate
LinkedIn actions for AI agents: search, messaging, posts and invites, as hosted MCP tools.
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
Social media analytics, video analysis, and competitor intel for any MCP-compatible AI agent.
An MCP for marketers that gives agents tools for SEO, AEO, socials and ads data. Generous free tier; works in Claude, ChatGPT, Cursor and other MCP clients.
Related MCP Servers
- FlicenseBqualityFmaintenanceEnables scraping of LinkedIn, Facebook, Instagram profiles and Google search via a Model Context Protocol server, allowing AI assistants to fetch social media data and search results.598-
- AlicenseBqualityCmaintenanceEnables AI assistants to access structured public web data (profiles, posts, videos, etc.) from social networks and directories via natural language, by forwarding tool calls to the scraper-api.com API.8419 npmMIT
- FlicenseNot gradedqualityCmaintenanceConnects Claude to the official Meta Instagram Graph API (read-only) for retrieving Instagram profile, media, insights, and comments as MCP tools over Streamable HTTP.-
- FlicenseNot gradedqualityAmaintenanceEnables an AI assistant to scrape public LinkedIn, Facebook, and Instagram profile and company data, and to run Google web searches via the Serper API. Exposes these capabilities as MCP tools that return JSON-formatted results for use in clients such as Claude Desktop.-