Electronic Markets TR — MCP Server (Rust)
A lightweight Model Context Protocol server that searches Turkish electronics e-commerce sites in parallel and returns normalized product, price (TRY) and stock data for AI agents.
Agenten stärken
Installation vom Herausgeber. Kein PlugMCP-Endpunkt.
Host a copy with our keys and logs.
Noch kein paketiertes Release in der Registry. Folgen Sie der README des Repositorys.
Remote-URL oder ein Befehl auf Ihrem Rechner? Worin sich die beiden Installationen unterscheiden
Auf PlugMCP ausführen
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
StartenVom Herausgeber
A lightweight Model Context Protocol server that searches Turkish electronics e-commerce sites in parallel and returns normalized product, price (TRY) and stock data for AI agents.
High-performance Rust MCP server for real-time price and stock search across Turkish electronics markets.
Give LLM agents one tool to compare prices and stock across Turkish electronics markets, without loading pages or scraping HTML themselves. The server returns raw page-one search hits; ranking and relevance judgment stay with the agent.
src/
domain/ Product, Price/Money (kurus-backed integer), StockStatus, Market, SearchQuery
parsing.rs Turkish price/stock text parsing (pure functions, no I/O)
http.rs Shared reqwest client: pooling, timeouts, bounded retry
scrapers/ One independent module per market (fetch + site-specific parser)
search.rs Concurrent orchestration: all 5 markets in parallel, per-market timeout,
partial results on failure
pipeline.rs Stock filter + URL-canonicalization dedup (pure functions)
mcp_service.rs rmcp tool server + shared search execution
main.rs stdio entry point
Design notes:
kurus (1/100 TRY) stored as i64; no floating point anywhere near prices.
A missing price is Price::Unavailable, distinct from zero.HttpError, ScrapeError); market failures are reported in the
response payload (marketErrors) instead of failing the whole search.Requires Rust 1.85+ (edition 2024).
cargo build --release
Environment variables:
RUST_LOG — log filter (default: no logs on stdout; logs go to stderr, e.g. RUST_LOG=warn)HTTP behavior (timeouts, retries, pool size) is configured in
src/http.rs::HttpClientConfig with sensible defaults: 5 s connect timeout, 15 s request
timeout, 1 retry for transient failures (5xx/timeout/network) only.
Register in an MCP client (e.g. Claude Desktop):
{
"mcpServers": {
"electronic-markets-tr": {
"command": "/absolute/path/to/mcp-electronicmarkets-tr/target/release/mcp-electronicmarkets-tr"
}
}
}
Tool: search_products
Response (JSON):
{
"query": "esp32",
"onlyInStock": true,
"resultCount": 5,
"products": [
{
"market": "robotistan",
"name": "ESP32-CAM ...",
"price": { "available": { "kurus": 92320 } },
"stockStatus": "in_stock",
"url": "https://www.robotistan.com/..."
}
],
"marketErrors": []
}
cargo check # fast type check
cargo test # unit + fixture + MCP protocol tests (offline)
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt --check
src/): Turkish price parsing, stock text parsing, URL building,
filtering, deduplication, query validation.tests/scraper_fixtures.rs, tests/robocombo_fixture.rs): real
HTML/JSON captured from the live sites; parser output verified against live-observed
counts (e.g. Ceriyan esp32 -> 10 products, 5 in stock / 5 out of stock). Includes
malformed-HTML and missing-field safety tests.tests/mcp_protocol.rs): full rmcp handshake over an in-memory
duplex transport — tool registration, input schema shape, invalid-parameter rejection.Hits the real sites; ignored by default so cargo test stays offline:
cargo test --test live_smoke -- --ignored --nocapture
Verifies all five markets with three queries: arduino uno, esp32, 220 ohm resistor.
Each market is reported independently; one failing market does not hide others' results.
Performance comparison (concurrent vs sequential search) can be run with:
cargo run --release --example perf_search
Measured on a residential connection (2026-09-10): concurrent 2.4 s vs sequential
7.4 s for esp32 (~3.1x speedup); results vary with per-site latency. Working set
during a search: ~14 MB.
cargo build --release
# binary: target/release/mcp-electronicmarkets-tr
Market (src/domain/market.rs) and include it in Market::ALL.src/scrapers/<market>.rs with pub async fn search(http: &HttpClient, query: &SearchQuery)
plus a pure pub fn parse_search_page(&str) -> Vec<Product>.search.rs::scrape_market.curl -A "Mozilla/..." <search-url> > tests/fixtures/<market>_search.html)
and add a fixture test.High-performance Rust MCP server for real-time price and stock search across Turkish electronics markets.
Tools
Noch keine Tool-Liste. Remote-Server erhalten eine nach dem ersten Health-Check.
FAQ
Kopieren Sie auf dieser Seite die stdio-Konfiguration für Cursor, Claude Desktop, Claude Code oder VS Code. Sie nutzt die Installation des Herausgebers, keinen PlugMCP-Proxy.
In diesem Eintrag ist keine erforderliche Umgebungsvariable aufgeführt.
MCP Electronicmarkets Tr läuft lokal über stdio.
Zuletzt geprüft: 2026-10-28. High-performance Rust MCP server for real-time price and stock search across Turkish electronics markets.