MCP server wrapping the Threads API into 6 AI-callable tools for social media content management
Project description
MCP Threads
An open-source MCP (Model Context Protocol) server that wraps the Threads API into 6 AI-callable tools for social media content management.
Built for Claude Code, Claude Desktop, and any MCP-compatible AI client. Enables AI agents to read profiles, list posts/replies/mentions, check publishing limits, and publish text posts through natural language.
Disclaimer: This project requires a valid Threads account token. It is intended for personal use and internal tooling only.
What This Does
- 6 ready-to-use tools covering profile, posts, replies, mentions, publishing limits, and text posting
- MCP server (stdio JSON-RPC 2.0) — plug into Claude Code and start interacting with Threads immediately
- Minimal dependencies — built on
mcpSDK with no external API client libraries - Local stdio server — works with Claude Desktop, Claude Code, and any MCP-compatible host
Quick Start
Install
pip install mcp-threads
Or use uvx (no install needed):
uvx mcp-threads serve
Set your token:
export THREADS_TOKEN="<your-token>"
Use with Claude Code
Add the server via the Claude CLI:
claude mcp add --transport stdio threads -- mcp-threads serve
Or with the environment variable inline:
claude mcp add --transport stdio threads -e THREADS_TOKEN=your_token_here -- mcp-threads serve
If you clone the repo locally, the .mcp.json config will be auto-detected by Claude Code and all 6 tools become available immediately.
Use with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"threads": {
"command": "mcp-threads",
"args": ["serve"],
"env": {
"THREADS_TOKEN": "your_token_here"
}
}
}
}
Or with uvx:
{
"mcpServers": {
"threads": {
"command": "uvx",
"args": ["mcp-threads", "serve"],
"env": {
"THREADS_TOKEN": "your_token_here"
}
}
}
}
Tools (6)
| Tool | Description |
|---|---|
threads_profile_me |
Read the authenticated Threads user profile |
threads_posts_list |
List posts created by the authenticated user |
threads_publishing_limit |
Read publishing quota usage and config |
threads_mentions_list |
List public Threads posts that mention the authenticated user |
threads_replies_list |
List replies created by the authenticated user |
threads_post_text |
Create and publish a text post or reply |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_threads-0.1.0.tar.gz.
File metadata
- Download URL: mcp_threads-0.1.0.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dffdf302c4ab2d9a695c5552b759dda9a5aff8f7e7cde2413fbcde8eb8687080
|
|
| MD5 |
57f8f721d9a8bb1f34919147358005e2
|
|
| BLAKE2b-256 |
990e1f146a5f6e04639c60ab3865587c59f521b7896aef6e1a66c7992484b636
|
Provenance
The following attestation bundles were made for mcp_threads-0.1.0.tar.gz:
Publisher:
publish.yml on asgard-ai-platform/mcp-threads
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_threads-0.1.0.tar.gz -
Subject digest:
dffdf302c4ab2d9a695c5552b759dda9a5aff8f7e7cde2413fbcde8eb8687080 - Sigstore transparency entry: 1717833347
- Sigstore integration time:
-
Permalink:
asgard-ai-platform/mcp-threads@7e90840183f667c96a85fbd434731028f6dd89ec -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/asgard-ai-platform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7e90840183f667c96a85fbd434731028f6dd89ec -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_threads-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_threads-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57259cb34e718cfec646f49d2b0d5e5f228e49295b5101506a4026014367cce7
|
|
| MD5 |
8a2d8b76ecb529215d118c1c4a92d3e0
|
|
| BLAKE2b-256 |
859e7c7b8ee1c678018bdec816b63dc8e851f6f469f9c9f42e371f81a58a2adf
|
Provenance
The following attestation bundles were made for mcp_threads-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on asgard-ai-platform/mcp-threads
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_threads-0.1.0-py3-none-any.whl -
Subject digest:
57259cb34e718cfec646f49d2b0d5e5f228e49295b5101506a4026014367cce7 - Sigstore transparency entry: 1717833465
- Sigstore integration time:
-
Permalink:
asgard-ai-platform/mcp-threads@7e90840183f667c96a85fbd434731028f6dd89ec -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/asgard-ai-platform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7e90840183f667c96a85fbd434731028f6dd89ec -
Trigger Event:
push
-
Statement type: