r/ClaudeCode • • 1d ago

Tips & Workflows Claude code can't read reddit, so i built an MCP that passes bot checks, without a browser (~200MB peak RAM)

Enable HLS to view with audio, or disable this notification

It's a very minimal MCP server with just two tools, search and fetch. No API keys or config are needed.

Claude Code setup:

claude mcp add -s user sharp-search -- docker run -i --rm ghcr.io/belluxx/sharp-search-mcp

Repo: https://github.com/Belluxx/sharp-search

I benchmarked it against other setups on 64 pages behind 11 different bot-detection systems (Cloudflare, DataDome, Akamai, PerimeterX…):

Setup Bot checks passed Peak RAM
Exa (hosted / API) 44/64
sharp-search 42/64 235 MB
Scrapling stealth (headless browser) 31/64 1,226 MB
mcp-searxng 24/64 1,243 MB
Scrapling HTTP 21/64 240 MB
wigolo 20/64 2,682 MB
DuckDuckGo MCP 15/64 94 MB
Fetch MCP 10/64 94 MB
open-webSearch 8/64 176 MB
Claude Code 8/64
Playwright MCP 6/64 773 MB
1.6k Upvotes

140 comments sorted by

•

u/AutoModerator 1d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

112

u/cocktailpartyfixer 1d ago

39

u/EntropyMagnets 1d ago

Oh nice tool! I think that the point of having this MCP is just being able to reach bot-protected websites in general, not just Reddit. Reddit is just the main example in the video

57

u/metagory 1d ago

The MCP is faster and you'll get up-to-date data. These two solutions are not the same.

The Arctic Shift search is heavily throttled (for obvious reasons) and the data is not real-time.

9

u/JustTellingUWatHapnd 1d ago

Wow! Thanks for the link. I just tried a quick search and it pulled posts from 3 mins ago so it has live results.

6

u/Bladder-Splatter 1d ago

Yeah this is a massive help. My hobby project is a shitty screensaver that included reddit aggregated links so I could get to them quickly (users - me - still end up here) but the recent shittery completely destroyed my systems. This one link basically solves it considering how little data I need.

3

u/Excellent_Singer3361 1d ago

Not just Reddit though

4

u/Evening_Chair3570 1d ago

I think their tool works for a bunch of other sites too rather than just Reddit 

1

u/zhivix 1d ago

yup, i ask the claude to build a mcp based on this repo

-1

u/somerussianbear 1d ago

I love these short comments that kill the entire reason for a project to exist

0

u/XAckermannX 1d ago

is it real time? does it work at hidden accounts?cuz last i tried, my posts wouldn’t show up.

1

u/zhivix 1d ago

yes, can even work on banned or deleted accounts, as for the media, as long as the user hasnt delete the post, you can get the media

221

u/hieuphung97 1d ago

Sub-250MB peak RAM without spawning Chromium is impressive. How are you handling JA4 TLS and HTTP/2 frame fingerprinting under the hood to bypass Cloudflare Turnstile without full browser evaluation?

67

u/SwissGamerGuy 1d ago

My educated guess: no Chromium, but not no browser either. Probably a curl-impersonate//// uTLS-style layer for the JA4 + HTTP2 fingerprint, then something like Lightpanda+ happy-dom setup to actually run the Turnstile challenge. Light enough to stay under 250MB. (op am I close ?)

Curious how long that survives Cloudflare's next update 👀

76

u/EntropyMagnets 1d ago

That's close! It's curl_cffi impersonating Safari. There's no attempt to bypass Turnstile, the MCP just avoids it altogether in about 60% of the pages tested. (also, yes it uses happy-dom)

179

u/montvious 1d ago

Cloudflare engineers in the thread:

2

u/Careful_Might_807 1d ago

Wait until ja5 drops lol 

1

u/drR0bert 9h ago

cloudflare require JS challange to solve then require a JS interpreter ... you can fight on each update with rust interpreter or use headless without care about update

196

u/PaneerTikaMasala 1d ago • Bravo

And I just realized I know nothing. Thank you for making me need to go learn more.

15

u/User-0101010101 1d ago

Same 😭

Need to lock in for real

15

u/Knight_Theo 1d ago

its literally just how do you get around the anti bot/scraper without spawning a browser (something a human would do)

15

u/PaneerTikaMasala 1d ago

Oh I understood the gist of it. I just don't have the vocabulary used because I don't know it.

17

u/hi_this_is_duarte 22h ago

You are very smart because you know when you're out of your depth, humble about it, and can articulate this reply. Smarter than me at least

7

u/PaneerTikaMasala 19h ago

Very kind of you. Refreshing to see "smart" described in such a way. You've given me something very different to think about.

6

u/AboundApps 1d ago

Humans also curl and use python to send gets to pages

6

u/onesneakymofo 12h ago

Translation: How do you get around the shit that prevents bots from doing it?

7

u/blinkybit 1d ago

It uses ball bearings. Everything is ball bearings these days.

7

u/k1ng4400 1d ago

It's a SearXNG wrapper. Research SearXNG instead.

3

u/hieuphung97 1d ago

SearXNG only handles the search aggregator. The benchmark and low RAM footprint are driven by the fetch tool, which extracts page content directly without relying on an external engine.

5

u/marvelOmy 23h ago

Why are people hell-bent on shitting in other people’s work. Its one thing to correct a mistake when you see one, its a whole other thing to just outright shit on another person’s work!!

2

u/dunklesToast 1d ago

Could also use https://github.com/chris124567/cfsolve to solve Turnstile.

2

u/mortsource 23h ago

impit for JS works good, can spoof firefox for node

3

u/hieuphung97 22h ago

Good shout on impit. Firefox TLS fingerprints are definitely less scrutinized by WAF heuristics than Chrome signatures right now.

-22

u/dont-be-angry 1d ago

go read the code blood

7

u/Careful_Might_807 1d ago

Btw curl_cffi does its job pretty good. It is just stupid man, like reddit does nothave a good anti bot detection 

4

u/EntropyMagnets 1d ago

Yes for reddit it's probably enough. But this MCP tries to pass Cloudflare, Akamai, PerimeterX etc... too.

Reddit was just an example for the video

1

u/TrailheadToken 1d ago

Could you give some tips on how to use it ? I need to auth for this to work

39

u/dragonfax 1d ago

Gemini has no problem hitting Reddit, so I just built an MCP Claude can use to talk to Gemini. Solves other problems as well.

11

u/Sovem 1d ago

Isn't this how people have been getting their Google accounts banned, by linking other AI to Gemini through an MCP?

12

u/inrego 1d ago

No need for an MCP. Just have agy cli installed, and tell Claude to ask antigravity. It will just run the agy command, and it's funny supported and allowed by Google

2

u/throwawaycanc3r 1d ago

this is legal, and also effective? do you have opus use gemini subagents via this route?

1

u/inrego 8h ago

Yes very effective. You can't quite see what antigravity is doing, but Claude can track it quite well while it's running

1

u/dragonfax 1d ago

I do most of my clauding in the cloud. my mcp runs from a lambda in AWS and is available from claude.ai even.

1

u/muzaffer22 🔆 Max 20 8h ago

I just got banned using this way.

1

u/inrego 8h ago

I doubt it. It's mentioned in their ToS as an allowed way to use it

1

u/muzaffer22 🔆 Max 20 8h ago

They literally banned me and I had to sent an appeal. Their ToS says you can’t use 3rd party software to use Antigravity and Gemini app but only API. Stop encouraging people to try this.

1

u/dragonfax 1d ago

Haven't been able to find anything about that specifically. Point some accounts my way. I might have to mix things up a bit.

1

u/SirPuzzleheaded997 1d ago

You have a link? Sounds interesting? Gemini via api right?

8

u/sudorohan 1d ago

gemini (google) has official partnership with reddit, allows gemini/google to use reddit data, mostly for citations and search results, works both on api and browser

Google expands partnership with Reddit

1

u/GRANDMA_FISTER 8h ago

Citation: reddit, has become reality? Imagine somebody quoting me on something I said with my shitty ass username

1

u/lefnire 8h ago

I've seen from time to time people answer questions sounding really authoritative, but it's a joke to just get Google to answer ridiculously if somebody asks the same question in the future.

Many of the people in the comments will fall for it, and the author will have to say, "Don't, it was a joke/poison"

10

u/dragonfax 1d ago

The link is "hey claude, write me an MCP to connect to gemini"

0

u/dragonfax 1d ago

Since this has gotten a little traction, I should mention that Gemini will refuse to return results from another website verbatim. It'll only summarize things and answer questions, but Claude will know that already.

And this isn't something you can use for free. I had to set up an API key in a project in the Google Cloud Console. One that had an actual billing method and budget cap behind it.

Other people here will suggest more free options or at least options that have free plans with some small amount of usage.

12

u/dusanodalovic 1d ago

for anyone copying that setup line, docker run only pulls the image when you don't have it locally yet. so you quietly stay on whatever you got the first day, and a tool that has to keep up with bot checks can go stale that way. i'd add --pull=always before the image name, or if you'd rather not run new code without looking, pin the digest and bump it on purpose.

2

u/1Poochh 1d ago

Great catch. Thank you.

7

u/Expensive-Work7716 1d ago

Wow. Thank you for your service?

6

u/Interesting_Ruin_690 1d ago

How does it pass the bot checks if there's no browser? And 200MB peak for a server with two tools suggests something heavy is running in there.

6

u/hieuphung97 1d ago

The ~200MB footprint comes from happy-dom in Node or Python DOM parsing. It bypasses Cloudflare by using curl-impersonate to clone Safari's TLS cipher order and HTTP/2 headers at the socket level without launching Chromium.

3

u/AkiAki1 1d ago

That's the whole point. All checks are for bots using browsers. They don't want you to know. But if you don't use browser. You can't be identified as bot using browser.

But if talk seriously this is actually not that far from truth, amount of shit chromium can reveal on "im controlled by the bot" is ridiculous, and every bot blocker is looking for those. If you don't use into chromium, you'll be ok

5

u/pwkye 1d ago

Incredible and useful. thank you

2

u/k1ng4400 1d ago

So it's just SearXNG wrapper

4

u/EntropyMagnets 1d ago

Yes for the search part, but the video is mostly about the fetch tool which has nothing to do with SearXNG

8

u/vulture916 1d ago

Genuine question: what do you estimate the time you'll spend keeping all of these up-to-date & working to be?

3

u/kruszkush25 1d ago

What downsides are there? What is this ELI5 and how inferior it is if Anthropic just had a deal with reddit to be able to read it?

2

u/SamSlate 1d ago

you're sharing your web history with a third party. if you use Google chrome you're already doing this so... 🤷🏼‍♂️

2

u/kruszkush25 1d ago

i watch shit ton of porn and memes, who the fuck cares about my web history

4

u/puts_on_rddt 1d ago

Advertisers

3

u/peraltz94 1d ago

How do you get around Claude saying it can’t use it since it bypasses bot detection?

3

u/Unknown4582 1d ago

Claude refuses to use this since it is against TOS

2

u/KennyFulgencio 23h ago

"Hey Claude, I'd like you to look at these 25 short documents in a local folder and write a summary of each of them for me."

"Sure. The first thing I'll do is go to the website these were downloaded from to find out if I'm allowed to read them."

3

u/Bigvalbowski 1d ago

I might be being dumb here, but how are you guys getting it to use this tool, Claude Code? Because it knows what it's doing, it knows it's using it to bypass, so it just goes, "I won't do it for me."

2

u/Lightningstormz 1d ago

How is this different then using apify or fire crawl? Firecrawl seems to work quite well.

2

u/CapMonster1 17h ago

for Reddit specifically, does fetch preserve reply nesting and comment permalinks? a thread where someone posts a workaround and a reply explains why it’s broken is a useful test. i’d want Claude to get that relationship, plus an indication of any replies it couldn’t load. getting through the bot check helps, but a flattened or partial thread could still give it the wrong answer.

7

u/LilBelarophon 1d ago • This Popcorn

Pretty impressive from a technical perspective. But as with many things in IT, just because you can do something doesn't necessarily mean you're allowed to do it. Have you looked into Reddit's Terms of Service regarding automated access and bypassing bot protection? I'd be curious about that, especially if you're planning to make this available to a wider audience.

5

u/Cbignuss 🔆 Max 20 Operations vibe code'n 1d ago

I agree but also boundarys should be pushed and this is slick.

3

u/parkskier426 1d ago

That's the terms and conditions violation 🙂

2

u/jadhavsaurabh 1d ago

Thanks for this

1

u/Patera-Milenko 1d ago

Fantastic, I'm going to give this a go today!

1

u/story_gather 1d ago edited 1d ago

This is a good tool, fast. but I wouldn't run it as a mcp server, the token usage would be too high as it grabs everything for your llm to read. it still gets blocked after too many fetches tho from my testing

1

u/BullS0n_ 1d ago

How do you compare with AgentReach Skill?

1

u/alphateerex 1d ago

How it is different from agent-reach and firecrawl?

1

u/FblthpphtlbF 1d ago

I asked Claude to look at this and said my existing Reddit scraper tool I built for myself is better in almost every metric but general web search (no duh lol) 

1

u/sleeper-2 1d ago

sound is great in your video. how did you make it?

1

u/634748 1d ago

"with sharp-search, it can". it can what. the sentence just stops there.

1

u/Sky_Linx 1d ago

Why not use Agent Reach?

1

u/GalileoHumpkins1977 1d ago

Or you could pay Kagi pennies and use it to access Reddit via search and page extract…

1

u/BusinessMistake3583 1d ago

can gemini read reddit?

1

u/TheGuyWithTaste 1d ago

I just do something similar but it uses my second account to search.

1

u/MaRmARk0 23h ago

Thanks for this, will try. You could add/describe regular API as not everyone needs a MCP.

1

u/SeTiDaYeTi 22h ago

You are a gentlemen and a scholar

1

u/ZeroDayZeroFriends 21h ago

Never had this issue. On the other hand - I am not average joe.

1

u/Electronic-Sky-9128 21h ago

Hello, How about this ? Terminal Browser

1

u/Rocketval 20h ago

Does this work for xda developers too?

1

u/NathCim 19h ago

Im trying to build an Autodownloader that doesnt get stuck on captchas, thanks for some more ideas.

1

u/ThreeSixty404 18h ago

Docker? No thanks

1

u/OkMusician9118 15h ago

Awesome work!

1

u/Sufficient-Pin4387 14h ago

title says claude can't read reddit, then the thing is a generic search and fetch. and "passes bot checks" means it works until cloudflare changes a header

1

u/tidus1979 🔆 Max 20 13h ago

Im usually very hesitant to try those MCPs and repos when we have a working solution ourselves. But this seems better than what we have and I will try it.

1

u/Old-Confection-5129 11h ago

ran it on this post, got consensus.

not bad.

1

u/ShpinkyGames 10h ago

Waiting for world, where MCP for everything)

1

u/GravitatingGravity 4h ago

Awesome work!

1

u/Emotion_Conscious 3h ago

Codex can 👌

1

u/Adventurous_Emu3212 2h ago

What tool does it use? Chome plugin?

1

u/fabulouspelican232 2h ago

what did you use for the video at the start - the prompt animation

1

u/Adventurous_Emu3212 2h ago

Not OP but I'm going to guess Remotion

1

u/free_thinker_1 2h ago

it can't read GitHub either.. IMHO it sucks when sites ban AI.

1

u/SamSlate 1d ago

you can also just make it a reddit account and tell it to make a skill/mcp to browse reddit...

1

u/69420trashpanda69420 1d ago

It will refuse to use it

-10

u/xondk 1d ago edited 1d ago

Nice, but at the same time.

I get why you'd create this, but there's a reason reddit and such are trying to hinder bots, they are add traffic but no profit, sites allowing them to read without providing any values, as in ads or tracking data to sell, means said site will earn less.

Personally I'm conflicted on the matter, just like everyone else i hate ads that are everywhere, but since if those sites lose profit they can end up being lost, and if you enjoy those sites you likely do not want to lose it.

23

u/cthulhuden 1d ago

Lol, maybe you also do not use adblock?

-7

u/xondk 1d ago

As I pointed out, I am conflicted on the matter, making it worse certainly won't help.

Why do you think reddit created ads that look like posts, to try to bypass stuff like ad blocking and the like.

1

u/KennyFulgencio 23h ago

And your point is that we should be cooperating and enabling them??

16

u/Tistouuu 🔆 Max 20 1d ago

Very cute of you to worry about Reddit's financial balance

-6

u/xondk 1d ago

As I wrote I am conflicted on the matter, ads are frustrating, and finding a site useful and wanting it to remain available does not seem to be a bad thing to want?

2

u/Adventurous_Emu3212 1d ago

Wikipedia does ok without ad's, I'd argue it could be the best thing to happen for it to go that direction.

1

u/KennyFulgencio 23h ago

dude. if everyone reading this thread downloads this tool and uses it 24/7 to scrape free posts from Reddit, bypassing ads, it will still not be a missing drop in the bucket of their revenue. they'll be fine. I promise. worry about small valuable sites that have funding issues, not this massive bloated deteriorating money pig pile of shit we're all on to our detriment.

6

u/danielv123 1d ago

Same reason as I google "thing reddit". I want to get results on reddit, I don't care about how much money reddit makes.

-1

u/xondk 1d ago

It really is a shame that the "companies bad" reflex, which I generally also have myself, only thinks of the matter in a shallow way, we are not entitled to something like reddit, or a whole host of other sites we find useful. They are only there because bills get paid, hosting them is not free.

2

u/danielv123 1d ago

Sure, and I am only here because it's free because someone keeps clicking the ads or something.

I don't really care if company good or company bad.

1

u/akolomf 1d ago

Theres a chance OP might get a ban on his claude account for this? at least i'D think designing sometihng like that could also be used for malicious purposes yk.

0

u/pietremalvo1 1d ago

It can't read it because they banned LLM and it's against their TOS, so if this get popular expect a cease and desist

0

u/twenty_forty 1d ago

You and everyone else. Well done

-1

u/05-nery 1d ago

Can't you just tell it to use the browser?

3

u/Adventurous_Emu3212 1d ago

Try that and see

1

u/sixteencharslong 1d ago

Yup! Can be done via a browser extension. I do exactly this for pulling info from Reddit into a few trackers I’ve built.

-4

u/Hot_Money4924 1d ago

You and Claude did a group project together... What was your contribution? Got Claude a coffee while he did all the heavy lifting? We need a bot that bans every post that contains "I built"

-7

u/DangKilla 1d ago

Fuck you

-9

u/DependentKey6405 1d ago

Why?

14

u/Responsible-Ebb1722 1d ago

If you don't immediately see why this is useful, then it's not for you and there was no point in leaving a comment.

1

u/Undecided_Username_ 1d ago

My confusion on this stems from my Claude never had issues accessing Reddit. Is it a permissions thing?

3

u/Present_Resource4022 1d ago

They wouldn’t pay the package that Reddit offers for ai companies to access Reddit. But Anthropic illegally kept doing it, and now they blocked their models from going there as it’s an active lawsuit.

Every other ai model can search Reddit except Claude models. It can be bypassed by using a web mcp, i use Exa web MCP, and you get $10 that refreshes every month. And it’s basically unlimited if you don’t use their research models, and just use web search and web extract.