kufar-mcp
MCP server for Kufar.by: search the catalog, track your listings' stats, saved searches and chat from Claude or any MCP client
Talk to Kufar.by through Claude or any other MCP client. Search the catalog in plain language, see how your own listings are doing, keep an eye on saved searches and get through your Kufar inbox without clicking through the site. \* changes your account; needs confirm=true. You need the .NET 10 SDK and Chrome or Edge.
Summary extracted from the README.
kufar-mcp
Talk to Kufar.by through Claude or any other MCP client. Search the catalog in plain language, see how your own listings are doing, keep an eye on saved searches and get through your Kufar inbox without clicking through the site.
You: Find a used iPhone 13 in Minsk under 1200 BYN, private sellers, with photos.
Claude: 14 matches. Cheapest is 980 BYN in Фрунзенский, listed 2 hours ago...
You: How are my listings doing?
Claude: 1 active: "Летние шины 205/55 R16", 200 BYN, 24 views, 1 favorite, 19 days left.
Can't be prolonged yet.
Unofficial project, not affiliated with Kufar. It talks to the same web API the site uses, so it can break when Kufar changes it. Kufar's terms don't welcome automation: this is built for one person managing their own account, not for scraping. See Legal.
What it's good for
Finding things faster. Describe what you want the way you'd tell a friend. The model turns it into Kufar's filters (category, region, Minsk district, price range in BYN, condition, private or company seller, photo only, Kufar delivery, exchange), reads the results and the ad details, and can compare a dozen ads in one answer.
Watching the market. Ask what's new for a query since this morning, or keep saved searches on your account and ask which ones have new ads. Handy for rare items and for checking prices before you list something yourself.
Knowing how your listings perform. Views, phone reveals, favorites, publish and expiry dates, days left and what Kufar lets you do with each ad (prolong, activate, delete), for every tab of "Мои объявления". "Which listing gets views but no calls?" becomes a one-line question.
Handling messages. See unread chats, read a conversation with the ad it's about, and draft a reply. The model shows you the text first and sends it only after you approve it.
Housekeeping. Delete an ad you've sold, reactivate or prolong one, create, rename or delete saved searches. Every change needs your explicit confirmation.
How it keeps your account safe
- You sign in yourself in a normal Chrome or Edge window (Google sign-in works). The server never
sees your password. It only stores the session cookie in
~/.kufar-mcp/on your machine. - Nothing changes without a yes. Deleting, prolonging, activating and sending messages need
confirm=true, which the model may only set after you agree. - Your contact data stays out of the chat. The email, phone and name Kufar returns for your account are dropped before anything reaches the model.
- It goes slowly on purpose. Requests go one at a time, with a pause between them.
Tools
| Area | Tools | Login |
|---|---|---|
| Catalog | search_ads, get_ad, find_new_ads, list_categories, list_regions |
no |
| My listings | get_my_ads, get_my_ads_counts, prolong_my_ad, activate_my_ad, delete_my_ad* |
yes |
| Saved searches | list_saved_searches, get_saved_search_new_items, create_saved_search, rename_saved_search, delete_saved_search* |
yes |
| Messages | get_unread_count, list_conversations, get_conversation, send_message* |
yes |
| Session | session_status, login, logout |
– |
* changes your account; needs confirm=true.
Setup
You need the .NET 10 SDK and Chrome or Edge.
git clone https://github.com/IgnatovichStanislav/kufar-mcp.git
cd kufar-mcp
dotnet publish src/KufarMcp -c Release -o dist
Sign in once. A browser window opens; log in to Kufar there and the window closes by itself:
dist/KufarMcp.exe login
If the browser sign-in doesn't work for you, paste the k_jwt cookie from DevTools
(Application → Cookies → https://www.kufar.by) instead:
dist/KufarMcp.exe set-token
Check the session:
dist/KufarMcp.exe status
Connect it to Claude Code
claude mcp add kufar -- /path/to/kufar-mcp/dist/KufarMcp.exe
Claude Desktop and other MCP clients
{
"mcpServers": {
"kufar": { "command": "C:\\path\\to\\kufar-mcp\\dist\\KufarMcp.exe" }
}
}
The catalog tools work without signing in.
Settings
| Variable | What it does |
|---|---|
KUFAR_MCP_HOME |
Folder for the session, browser profile and logs. Default ~/.kufar-mcp |
CHROME_PATH |
Browser executable, if Chrome or Edge is installed somewhere unusual |
KUFAR_MCP_HEADFUL=1 |
Show the browser window while sending a message (debugging) |
No Chrome or Edge at all? KufarMcp install-browser downloads Chromium.
How it works
Almost everything goes straight to api.kufar.by, the JSON API behind the website, so answers are fast
and structured. A browser is used only where it actually helps:
- sign-in, so you can use SMS codes, captchas and Google login as usual;
- sending a chat message, through the site in a background window. Network traffic of that call is
logged to
~/.kufar-mcp/logs/so it can later be replaced by a direct API call.
src/KufarMcp/
Program.cs MCP host (stdio) and CLI commands
Infrastructure/ Kufar API client, browser automation, session, filters, response mapping
Tools/ MCP tools by area
tests/
KufarMcp.Tests/ unit tests on anonymized fixtures
smoke/ end-to-end scenarios over MCP against the live API
TEST_CASES.md test catalog, known issues and backlog
Status
Tested against the live site on 2026-11-04: catalog search and filters, ad details, sign-in, every read tool on a real account, the full saved-search cycle and deleting a listing.
Not tested yet: prolong_my_ad, activate_my_ad and send_message. Districts are only known for Minsk.
See tests/TEST_CASES.md for details and the backlog.
Development
dotnet test
python -X utf8 tests/smoke/mcp_smoke.py src/KufarMcp/bin/Debug/net10.0/KufarMcp.exe tests/smoke/public.json
Issues and pull requests are welcome, especially for the untested tools and district ids outside Minsk.
Legal
This is an unofficial client for your own Kufar account. It isn't affiliated with, endorsed by or connected to Kufar. "Kufar" is used only to say which site the tool works with.
Intended use
- your own account, signed in by you in your own browser;
- personal buying and selling;
- low request volume, about what a person clicking through the site would do.
Don't use it to
- access someone else's account or session token without their consent;
- bulk-download the catalog, or republish or sell Kufar data;
- process other people's messages or personal data for a business without meeting data protection law. In Belarus that's Law No. 99-Z "On Personal Data Protection". Anything the model reads is sent to your AI provider, which can be a cross-border transfer.
What this project won't do
The server doesn't bypass captchas, rate limits or any other protection. Pull requests that add protection bypass, multi-account use or bulk scraping won't be accepted.
Kufar's user agreement may restrict automated access, and your account can be limited for using this tool. You're responsible for how you use it. The software is provided "as is" under the MIT License, without warranty of any kind.
If you represent Kufar and have concerns about this project, please open an issue and I'll respond.