Skip to main content
Glama
README.mdโ€ข17 kB
<div align="center"> <img src="icon.png" alt="AnySite MCP Server Logo" width="200" /> # ๐ŸŒ AnySite MCP Server **Agent-First Web Scraping Infrastructure via Model Context Protocol** Connect your AI agents to real-time data from LinkedIn, Instagram, Reddit, Twitter, and any website through a single MCP server. [![npm version](https://img.shields.io/npm/v/@anysiteio/mcp.svg)](https://www.npmjs.com/package/@anysiteio/mcp) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub stars](https://img.shields.io/github/stars/anysiteio/anysite-mcp-server)](https://github.com/anysiteio/anysite-mcp-server/stargazers) [![Documentation](https://img.shields.io/badge/docs-anysite.io-blue)](https://docs.anysite.io/mcp-server) [๐Ÿš€ Quick Start](#-quick-start) โ€ข [๐Ÿ“– Documentation](https://docs.anysite.io/mcp-server) โ€ข [๐Ÿฆ Twitter](#) </div> --- ## ๐ŸŽฏ What is AnySite MCP Server? AnySite MCP Server is a **Model Context Protocol (MCP)** implementation that gives AI agents direct access to web data through platform-specific APIs. Unlike traditional web scrapers, AnySite provides: - **๐Ÿ”’ OAuth Authentication** - Secure, one-click connection for Claude Desktop and other MCP clients - **๐ŸŒ Multi-Platform Support** - LinkedIn, Instagram, Reddit, Twitter, and custom web parsing - **๐Ÿค– Agent-First Design** - Built specifically for AI agents with structured data formats - **๐Ÿ”„ Self-Healing APIs** - Auto-recovery from platform changes and rate limits - **โšก Real-Time Data** - Fresh data extraction without stale caches > **Perfect for:** AI research, lead generation, market intelligence, content monitoring, competitive analysis --- ## โšก Key Features ### ๐ŸŽช Supported Platforms | Platform | Search | Profiles | Posts | Comments | DMs | Analytics | |----------|--------|----------|-------|----------|-----|-----------| | **LinkedIn** | โœ… | โœ… | โœ… | โœ… | โœ… | โœ… | | **Instagram** | โœ… | โœ… | โœ… | โœ… | โŒ | โœ… | | **Reddit** | โœ… | โœ… | โœ… | โœ… | โŒ | โš ๏ธ | | **Twitter/X** | โœ… | โœ… | โœ… | โš ๏ธ | โŒ | โš ๏ธ | | **Any Website** | โœ… | - | - | - | - | - | ### ๐Ÿ› ๏ธ Core Capabilities - **Advanced Search & Filtering** - Find people by title, company, location, education, skills - **Bulk Data Extraction** - Extract thousands of profiles, posts, or comments in one request - **Network Analysis** - Map connections, followers, engagement patterns - **Content Monitoring** - Track posts, comments, reactions in real-time - **Account Management** - Send messages, connection requests, post comments (LinkedIn) - **Smart Web Parsing** - Extract structured data from any website using CSS selectors ### ๐Ÿ” Enterprise-Grade Features - **Rate Limit Management** - Automatic backoff and retry with exponential delays - **Proxy Rotation** - Built-in proxy support for high-volume requests - **Error Recovery** - Self-healing mechanisms for platform changes - **Usage Analytics** - Track API consumption and costs - **Team Management** - Multi-user accounts with role-based access --- ## ๐Ÿš€ Quick Start ### Option 1: Remote MCP with OAuth (Recommended) Perfect for **Claude Desktop, Cline, Cursor, Windsurf**, and other MCP clients that support OAuth. #### Step 1: Get Your OAuth URL 1. Sign up at [app.anysite.io](https://app.anysite.io) (100 free credits included) 2. Navigate to **MCP Server Integration** 3. Copy your OAuth URL: `https://api.anysite.io/mcp/sse` #### Step 2: Add to Your MCP Client <details> <summary><b>Claude Desktop</b> (Click to expand)</summary> 1. Open **Claude Desktop** โ†’ **Settings** โ†’ **Connectors** 2. Click **Add Custom Connector** 3. Fill in: - **Name:** AnySite MCP - **OAuth URL:** `https://api.anysite.io/mcp/sse` 4. Click **Add** โ†’ **Connect** โ†’ **Allow Access** ๐Ÿ“– [Detailed Claude Desktop Setup Guide](https://docs.anysite.io/mcp-server/claude-desktop-tool/installation) </details> <details> <summary><b>Cline / Cursor / Windsurf</b></summary> Add to your MCP configuration file: ```json { "mcpServers": { "anysite": { "command": "npx", "args": ["-y", "@anysite/mcp"], "env": { "ANYSITE_OAUTH_URL": "https://api.anysite.io/mcp/sse" } } } } ``` Configuration file locations: - **Cline:** `.cline/mcp_settings.json` - **Cursor:** `.cursor/mcp_config.json` - **Windsurf:** `.windsurf/mcp_config.json` </details> #### Step 3: Verify Connection Ask your AI agent: ``` What MCP tools do you have access to? ``` Expected response should include: - `search_linkedin_users` - `get_linkedin_profile` - `get_instagram_user` - `search_reddit_posts` - `google_search` - `parse_webpage` - ... and **50+ more tools** --- ### Option 2: Local MCP Server (For Development) Perfect for **testing, development, custom integrations**. #### Installation ```bash # Clone the repository git clone https://github.com/anysiteio/anysite-mcp-server.git cd anysite-mcp-server # Install dependencies npm install # Build the project npm run build ``` #### Configuration Create `.env` file: ```env ANYSITE_ACCESS_TOKEN=your_access_token ANYSITE_ACCOUNT_ID=your_account_id ``` Get your credentials from [app.anysite.io](https://app.anysite.io/settings/api-keys) #### Run Server ```bash npm start ``` #### Connect to MCP Client Add to your MCP configuration: ```json { "mcpServers": { "anysite-local": { "command": "node", "args": ["/path/to/anysite-mcp-server/build/index.js"], "env": { "ANYSITE_ACCESS_TOKEN": "your_token", "ANYSITE_ACCOUNT_ID": "your_account_id" } } } } ``` --- ## ๐ŸŽฎ Usage Examples ### LinkedIn: Find Decision Makers ``` Find me 10 CTOs at AI companies in San Francisco ``` The MCP server will: 1. Search LinkedIn users with title="CTO", company_keywords="AI", location="San Francisco" 2. Return structured profiles with name, headline, company, location 3. Provide direct LinkedIn URLs for each profile ### Instagram: Monitor Brand Mentions ``` Get the latest 20 Instagram posts mentioning @yourbrand ``` ### Reddit: Analyze Discussions ``` Search Reddit for posts about "LLM agents" in the last week, sorted by top engagement ``` ### Multi-Platform Research ``` 1. Find the LinkedIn profile of John Doe at Company X 2. Get his recent posts and engagement metrics 3. Find his Twitter profile and latest tweets 4. Cross-reference with Instagram presence ``` --- ## ๐Ÿ“– Documentation ### ๐Ÿ“š Full Documentation - [AnySite MCP Server Docs](https://docs.anysite.io/mcp-server) - [API Reference](https://docs.anysite.io/api-reference) - [All Available Tools](https://docs.anysite.io/mcp-server/tools) ### ๐Ÿ”ง Tool Categories (57 Total) <details> <summary><b>LinkedIn Tools (26 tools)</b></summary> **Search & Discovery (7 tools)** - `search_linkedin_users` - Advanced user search with 10+ filters - `linkedin_sn_search_users` - Sales Navigator advanced search - `get_linkedin_email_user` - Find users by email address - `get_linkedin_user_email_db` - Batch email lookup (up to 10 profiles) - `get_linkedin_google_company` - Find companies via Google search - `get_linkedin_company` - Company details lookup - `search_linkedin_posts` - Search posts by keywords, author, date **Profile & Data (7 tools)** - `get_linkedin_profile` - Full profile with experience, education, skills - `get_linkedin_user_posts` - User's post history - `get_linkedin_user_reactions` - Posts user reacted to - `get_linkedin_user_comments` - User's comment history - `get_linkedin_user_connections` - Network connections - `get_linkedin_user_endorsers` - Skill endorsers - `get_linkedin_user_certificates` - User certificates **Company Intelligence (4 tools)** - `get_linkedin_company_employees` - Employee list with filters - `get_linkedin_company_posts` - Company updates - `get_linkedin_post_reposts` - Reshare analysis - `get_linkedin_conversations` - Conversation history **Engagement (4 tools)** - `get_linkedin_post_comments` - Comment threads - `get_linkedin_post_reactions` - Who reacted and how - `get_linkedin_post_reposts` - Reshare analysis **Account Management (4 tools)** - Requires ACCOUNT_ID - `get_linkedin_management_me` - Get own profile - `send_linkedin_chat_message` - Send DMs - `get_linkedin_chat_messages` - Retrieve conversations - `send_linkedin_connection` - Send connection requests - `send_linkedin_post_comment` - Comment on posts - `send_linkedin_post` - Create posts </details> <details> <summary><b>Instagram Tools (8 tools)</b></summary> - `get_instagram_user` - Profile info, followers, posts count - `get_instagram_user_posts` - Post history with media - `get_instagram_user_reels` - Reels/videos - `get_instagram_user_friendships` - Followers/following lists - `get_instagram_post` - Post details with metrics - `get_instagram_post_comments` - Comment threads - `get_instagram_post_likes` - Who liked the post - `search_instagram_posts` - Hashtag and keyword search </details> <details> <summary><b>Twitter/X Tools (5 tools)</b></summary> - `get_twitter_user` - Profile details - `search_twitter_users` - Find users - `get_twitter_user_posts` - Tweet history - `search_twitter_posts` - Advanced tweet search with 15+ filters - `get_twitter_post` - Tweet details </details> <details> <summary><b>Reddit Tools (3 tools)</b></summary> - `search_reddit_posts` - Search with sort, time, subreddit filters - `get_reddit_post` - Post details with score, comments - `get_reddit_post_comments` - Comment trees with nested replies </details> <details> <summary><b>Web Parsing Tools (2 tools)</b></summary> - `parse_webpage` - Extract content with 14+ CSS selector options - `get_sitemap` - Parse website sitemaps </details> <details> <summary><b>Other Tools (3 tools)</b></summary> - `google_search` - Google search with clean results - `search` - ChatGPT Deep Research optimized search - `fetch` - ChatGPT Deep Research optimized profile fetch </details> --- ## ๐Ÿค Integrations AnySite MCP Server works with any MCP-compatible client: ### AI Assistants - โœ… **Claude Desktop** - Native OAuth support - โœ… **Cline** - MCP configuration - โœ… **Cursor** - Custom MCP server - โœ… **Windsurf** - MCP integration - โœ… **Any MCP Client** - Standard protocol ### Development Tools - ๐Ÿ”ง **n8n** - [AnySite n8n nodes](https://github.com/anysiteio/n8n-nodes-anysite) - ๐Ÿ”ง **LangChain** - Custom tool integration - ๐Ÿ”ง **AutoGen** - Agent tool registration - ๐Ÿ”ง **REST API** - Direct API access ### Comparison: Remote vs Local | Feature | Remote MCP (OAuth) | Local MCP | |---------|-------------------|-----------| | **Setup Time** | < 2 minutes | ~10 minutes | | **Authentication** | OAuth (secure, one-click) | API keys in config | | **Updates** | Automatic | Manual git pull | | **Best For** | Production, end-users | Development, testing | | **Credentials** | Managed by AnySite | Self-managed | | **Revocation** | One-click in dashboard | Manual removal | | **MCP Clients** | Claude Desktop, Cline, etc. | Any MCP client | **Recommendation:** Use **Remote MCP** for production and **Local MCP** for development/testing. --- ## ๐Ÿ—๏ธ Architecture ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ MCP Client โ”‚ (Claude Desktop, Cline, etc.) โ”‚ (AI Agent) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ MCP Protocol โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ AnySite MCP โ”‚ โ”‚ Server โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ REST API โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ AnySite API โ”‚ โ† OAuth Authentication โ”‚ Platform โ”‚ โ† Rate Limiting โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ† Proxy Rotation โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ–ผ โ–ผ โ–ผ โ–ผ โ–ผ LinkedIn Instagram Reddit Twitter Any Website ``` **Key Components:** - **MCP Protocol Layer** - Standardized tool interface for AI agents - **API Abstraction** - Platform-specific API adapters with error handling - **Authentication** - OAuth 2.0 for secure credential management - **Self-Healing** - Auto-retry and fallback mechanisms - **Rate Limiting** - Smart backoff to prevent API bans --- ## ๐Ÿ’ก Use Cases ### ๐ŸŽฏ Lead Generation & Sales - Find decision makers by title, company, location - Enrich CRM data with LinkedIn profiles - Monitor competitor hiring and expansion ### ๐Ÿ“Š Market Intelligence - Track brand mentions across platforms - Analyze competitor social media strategy - Monitor industry trends and discussions ### ๐Ÿ” Research & Analytics - Collect datasets for AI training - Social network analysis - Content performance tracking ### ๐Ÿค– AI Agent Workflows - Multi-platform data correlation - Automated outreach campaigns - Cross-platform identity resolution --- ## ๐Ÿ› ๏ธ Development ### Building from Source ```bash # Clone repository git clone https://github.com/anysiteio/anysite-mcp-server.git cd anysite-mcp-server # Install dependencies npm install # Build TypeScript npm run build # Run in development mode npm run dev # Run tests npm test ``` ### Project Structure ``` anysite-mcp-server/ โ”œโ”€โ”€ src/ # Source code โ”‚ โ”œโ”€โ”€ index.ts # MCP server entry point (Smithery runtime) โ”‚ โ”œโ”€โ”€ server.ts # Server implementation (Traditional MCP) โ”‚ โ””โ”€โ”€ types.ts # TypeScript type definitions โ”œโ”€โ”€ build/ # Compiled JavaScript โ”‚ โ”œโ”€โ”€ index.js # Main entry point โ”‚ โ”œโ”€โ”€ server.js # Server executable โ”‚ โ”œโ”€โ”€ types.js # Type definitions โ”‚ โ”œโ”€โ”€ remote-server.js # Remote server support โ”‚ โ”œโ”€โ”€ streamable-server.js # Streaming support โ”‚ โ””โ”€โ”€ smithery.js # Smithery integration โ”œโ”€โ”€ .claude/ # Claude Code settings โ”‚ โ””โ”€โ”€ settings.local.json โ”œโ”€โ”€ .cursor/ # Cursor IDE settings โ”‚ โ””โ”€โ”€ rules/ โ”œโ”€โ”€ .smithery/ # Smithery CLI files โ”‚ โ””โ”€โ”€ index.cjs โ”œโ”€โ”€ package.json # npm package configuration โ”œโ”€โ”€ package-lock.json โ”œโ”€โ”€ tsconfig.json # TypeScript configuration โ”œโ”€โ”€ smithery.yaml # Smithery config โ”œโ”€โ”€ glama.json # Glama integration โ”œโ”€โ”€ .env # Environment variables (local) โ”œโ”€โ”€ .npmrc # npm configuration โ”œโ”€โ”€ .gitignore โ”œโ”€โ”€ README.md # Documentation โ”œโ”€โ”€ CLAUDE.md # Claude Code instructions โ”œโ”€โ”€ LICENSE.md # MIT License โ””โ”€โ”€ LICENSE ``` ### Contributing We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. **Areas we need help with:** - ๐Ÿ“ Documentation improvements - ๐Ÿ› Bug fixes and testing - โœจ New platform integrations - ๐ŸŒ Translations --- ## ๐Ÿ“Š Pricing & Limits ### Free Tier - โœ… 100 free credits on signup - โœ… All 57 tools available - โœ… OAuth authentication - โš ๏ธ Rate limits apply ### Pro Plans - ๐Ÿš€ Higher rate limits - ๐Ÿš€ Priority support - ๐Ÿš€ Dedicated proxies - ๐Ÿš€ Team collaboration See [pricing details](https://anysite.io/pricing) --- ## ๐Ÿ”’ Security & Privacy - **OAuth 2.0** - Industry-standard authentication - **No Credential Storage** - Your API keys stay with AnySite - **Encrypted Transport** - All data transmitted over HTTPS - **GDPR Compliant** - Data processing follows EU regulations - **Revocable Access** - One-click disconnect in dashboard โš ๏ธ **Important:** Always comply with platform terms of service and local regulations when scraping data. --- ## ๐Ÿ’ฌ Community & Support - ๐Ÿ“– [Documentation](https://docs.anysite.io) - ๐Ÿ’ฌ [Discord Community](#) - Ask questions, share workflows - ๐Ÿฆ [Twitter](https://twitter.com/anysite_io) - Latest updates - ๐Ÿ“ง [Email Support](mailto:support@anysite.io) - ๐Ÿ› [GitHub Issues](https://github.com/anysiteio/anysite-mcp-server/issues) --- ## ๐Ÿ“„ License This project is licensed under the [MIT License](LICENSE.md). --- ## ๐Ÿ™ Acknowledgments Built with: - [Model Context Protocol](https://modelcontextprotocol.io/) by Anthropic - [TypeScript](https://www.typescriptlang.org/) - [Node.js](https://nodejs.org/) Special thanks to the MCP community for feedback and contributions. --- <div align="center"> **โญ Star us on GitHub if AnySite MCP Server helps your AI agents!** Made with โค๏ธ by the [AnySite.io](https://anysite.io) team [Website](https://anysite.io) โ€ข [Documentation](https://docs.anysite.io) โ€ข [API Playground](https://app.anysite.io) </div>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anysiteio/hdw-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server