Skip to main content
Glama
BiNetwork Web Search

BiNetwork Web Search

Official
README.md
# BiNetwork Web Search

Search the web with Yandex and open source pages from any MCP client. Bring a Yandex Cloud service-account API key with the `search-api.webSearch.user` role and `yc.search-api.execute` scope. The service works independently of BiNetwork.

## Run locally

Requires Node.js 20.19+.

```sh
npm ci
cp .env.example .env
# Set YANDEX_SEARCH_API_KEY in .env.
node --env-file=.env server.mjs
```

Connect a Streamable HTTP MCP client to `http://127.0.0.1:3126/mcp`. Set `MCP_TOKEN` to require an HTTP Bearer token. A non-loopback listener requires a token. For a stdio client, launch `node --env-file=.env server.mjs --stdio` from the project directory. Keep the environment file private. The service-account folder is inferred unless `YANDEX_FOLDER_ID` is set.

## Operations

- `search_web({query, limit?, region?})` makes one synchronous Russian web search and returns titles, source URLs and excerpts. Limit is 1–10. An empty successful search is a valid result. No automatic retries. When the request outcome is unknown, the provider may already have processed it.
- `read_page({url, offset?})` retrieves public HTML or plain text and returns a title, text, final URL and optional continuation offset. It does not use a paid search request. Private addresses, nonstandard ports, binary files and pages larger than 2 MiB are outside its scope. The reader does not execute page scripts.

Yandex bills the account that owns the key. A host such as BiNetwork can account for its users independently. The MCP has no wallet access. Use `npm test` for offline tests, including a real HTTP connection from the MCP SDK.

[Yandex API](https://aistudio.yandex.ru/ru/docs/search-api/api-ref/WebSearch/search) · [Yandex pricing](https://aistudio.yandex.ru/ru/docs/search-api/pricing) · [MIT license](LICENSE)