
quinnjr/threads-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Production-ready Model Context Protocol server for Threads.com API. Features rate limiting, caching, webhooks, and full TypeScript support. Integrate Threads with Claude, ChatGPT, and AI assistants.
概要
A powerful Model Context Protocol (MCP) server for integrating with the Threads.com API. This server provides comprehensive tools for creating, reading, and managing Threads content programmatically. - 🚀 - Full support for Threads.com API v1.0 - 🔧 - Standard Model Context Protocol implementation - 📊 - Access engagement metrics and analytics - 💬 - Create threads, replies, and manage conversations - 🎯 - Full TypeScript support with Zod schema validation - ⚡ - Token bucket algorithm to prevent API rate limit violations - 💾 - In-memory caching with TTL and LRU eviction - 🔔 - Event-based webhooks with automatic retries and signature verification - ✅ - >90% test coverage with Vitest - 🔄 - Built with latest npm packages and best practices The server provides the following MCP tools: - - Get authenticated user's profile information - - Retrieve user's threads (posts) with pagination - - Get a specific thread by ID - - Create new threads with text, images, or videos - - Reply to...
README
以下は原文 README の抜粋です。原文を見る。
Threads MCP Server
A powerful Model Context Protocol (MCP) server for integrating with the Threads.com API. This server provides comprehensive tools for creating, reading, and managing Threads content programmatically.
🌐 Visit the Website for a better reading experience!
Features
- 🚀 Complete Threads API Integration - Full support for Threads.com API v1.0
- 🔧 MCP Protocol - Standard Model Context Protocol implementation
- 📊 Analytics & Insights - Access engagement metrics and analytics
- 💬 Conversation Management - Create threads, replies, and manage conversations
- 🎯 Type-Safe - Full TypeScript support with Zod schema validation
- ⚡ Rate Limiting - Token bucket algorithm to prevent API rate limit violations
- 💾 Caching Layer - In-memory caching with TTL and LRU eviction
- 🔔 Webhook Support - Event-based webhooks with automatic retries and signature verification
- ✅ Well Tested - >90% test coverage with Vitest
- 🔄 Modern Stack - Built with latest npm packages and best practices
Available Tools
The server provides the following MCP tools:
Profile & Content Management
threads_get_profile- Get authenticated user’s profile informationthreads_get_threads- Retrieve user’s threads (posts) with paginationthreads_get_thread- Get a specific thread by IDthreads_create_thread- Create new threads with text, images, or videosthreads_reply_to_thread- Reply to existing threads
Engagement & Analytics
threads_get_insights- Get analytics for threads or user accountthreads_get_replies- Retrieve replies to a specific threadthreads_get_conversation- Get full conversation threads
Prerequisites
Before you begin, you’ll need:
- Node.js 18+ - Download here
- pnpm - Install with
npm install -g pnpm - Meta Developer Account - Sign up here
- Threads Account - Your personal Threads account
- OAuth 2.0 Credentials - See OAuth Setup Guide
Getting Your Threads API Credentials
⚠️ Important: Threads uses OAuth 2.0 authentication. You cannot use simple API keys.
Quick Setup (Automatic OAuth)
- Create a Meta App
- Visit Meta for Developers
- Create a new app and add the Threads API product
- Add OAuth redirect URI:
http://localhost:48810/callback - Get your App ID and App Secret
インストール
npx -y @pegasusheavy/threads-mcp設定
{
"mcpServers": {
"threads": {
"command": "npx",
"args": ["-y", "@pegasusheavy/threads-mcp"],
"env": {
"THREADS_APP_ID": "your-app-id",
"THREADS_APP_SECRET": "your-app-secret"
}
}
}
}