GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ishan-parihar/threads-lyr: Threads.net MCP server via anonymous scraping

BranchesTags
Open more actions menu

Latest commit

 

History

30 Commits
30 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills/threads-lyr
.agents/skills/threads-lyr
 
 
.github
.github
 
 
docs
docs
 
 
scripts
scripts
 
 
tests
tests
 
 
threads_mcp_server
threads_mcp_server
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.mcp.json
.mcp.json
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SKILL.md
SKILL.md
 
 
TODO.md
TODO.md
 
 
genome.toml
genome.toml
 
 
install.sh
install.sh
 
 
manifest.json
manifest.json
 
 
pyproject.toml
pyproject.toml
 
 
pytest.ini
pytest.ini
 
 
uv.lock
uv.lock
 
 
workspace-lint.yaml
workspace-lint.yaml
 
 

Repository files navigation

Python 3.11+ LOC Status CI uv MIT

threads-lyr

A Threads.net MCP server for AI agents — read public profiles and recent threads the same way an anonymous visitor would. No login, no cookies, no session state, no Threads API app.

curl -fsSL https://raw.githubusercontent.com/ishan-parihar/threads-lyr/main/install.sh | bash


What it does

  • get_threads_profile — bio, follower/following/post counts for any public profile
  • get_user_threads — recent public threads (text, url, created_at, engagement)
  • close_session — release scrape clients
  • Agent-first CLI — AXI-compliant (--list-tools, --tool-info, --json, --hook, --install-hook, --install-skill)
  • Two MCP transports — stdio and streamable-http

Threads posts and profiles are public, so the client fetches threads.net/@username directly — Chrome TLS impersonation gets through, no credentials required. Cloned from facebook-lyr and stripped to Threads only.

Why anonymous scraping?

The official Threads API requires Meta app registration and access tokens, and writing tools need authorized credentials. For reading public content, that's heavy machinery for a problem an anonymous fetch already solves.

  • curl_cffi with Chrome TLS impersonation defeats JA3 fingerprint detection.
  • Profiles and feeds are parsed from Threads' embedded JSON with a resilient deep-scan — no fragile selectors.
  • Tools are annotated readOnlyHint so agents know not to attempt writes.

Quick install

./install.sh      # or: uv sync
uv run threads-lyr --status          # anonymous — always valid

threads-lyr update --check and threads-lyr update are available for package-manager-owned installs; threads-lyr upgrade is an alias. The project installer creates an editable checkout install, so its updater refuses to replace source files. Update that installation with git -C <checkout> pull followed by cd <checkout> && uv sync.

Direct CLI tool execution

uv run threads-lyr get_threads_profile --username zuck
uv run threads-lyr get_user_threads --username zuck --limit 10
uv run threads-lyr get_user_threads --username zuck --limit 5 --json
uv run threads-lyr --list-tools

MCP server

Spawn with no args on a pipe (as Claude Code / other MCP clients do):

threads-lyr          # starts the JSON-RPC stdio server

For the streamable-http transport:

TRANSPORT=streamable-http PORT=8000 threads-lyr

Honest platform limits

  • Read-only. Publishing on Threads requires the official Threads API — out of scope for anonymous scraping.
  • Anonymous. Only public profiles are reachable; private profiles return not-found/empty.

Layout

threads_mcp_server/
  scraping/     curl_cffi Chrome-impersonation client + embedded-JSON parsers
  tools/        FastMCP tool registration (threads_tools.py)
  server.py     FastMCP server assembly
  cli_main.py   AXI-compliant CLI
  config/       layered config (CLI args > env > defaults)

Visual proof

Profile Threads feed MCP tools
Profile Feed Tools

Related CLI Tools

This project is part of a family of agent-friendly CLI tools for social platforms:

Tool CLI Repo
Instagram instagram-lyr ishan-parihar/instagram-lyr
Threads threads-lyr ishan-parihar/threads-lyr
Facebook facebook-lyr ishan-parihar/facebook-lyr
Reddit reddit-lyr ishan-parihar/reddit-lyr
LinkedIn linkedin-lyr ishan-parihar/linkedin-lyr
Twitter/X twitter-lyr ishan-parihar/twitter-lyr
Discord discord ishan-parihar/discord-cli
Telegram tg ishan-parihar/tg-cli

License

MIT — see LICENSE.


☕ Support & Sponsorship

If you find this project useful, consider supporting ongoing development:

Sponsor Donate

Your support funds new features, releases, and infrastructure for the whole ecosystem.

About

Threads.net MCP server via anonymous scraping

Topics

agenticai-agentsai-toolsmcpmodel-context-protocolpython

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.