Skip to main content

MCP (Model Context Protocol) stdio server for iFlow Search (心流搜索) — exposes web_search, image_search, and web_fetch as MCP tools.

Project description

iflow-search-mcp

PyPI - Version Python Versions

MCP stdio server for iFlow Search (心流搜索).

Exposes three MCP tools backed by the iflow-search core SDK:

  • iflow_web_search — web search
  • iflow_image_search — image search
  • iflow_web_fetch — fetch the readable contents of a URL

This package is a thin adapter. All HTTP, authentication, attribution-header construction, response normalization, and error mapping live in the iflow-search core SDK. This package owns only the MCP server wiring — tool definitions, tool dispatch, and the stdio entry point.

Install

pip install --pre iflow-search-mcp

The package is currently published as a PEP 440 prerelease (0.1.0a0), so the --pre flag is required. Installing pulls in the MCP Python SDK, which transitively depends on starlette, uvicorn, sse-starlette, python-multipart, pyjwt[crypto], and jsonschema — even though this server only uses stdio. There is no [stdio] extra on the upstream package.

Configure your MCP host

The server reads its configuration from environment variables only — no .env files, no CLI flags, no config files.

Variable Required Notes
IFLOW_API_KEY yes iFlow API key
IFLOW_BASE_URL no Override the platform base URL
IFLOW_TIMEOUT_MS no Request timeout in milliseconds (positive integer)
IFLOW_MCP_CLIENT no Identifier for the MCP host (e.g. claude-desktop); regex ^[a-z0-9._-]{1,64}$
IFLOW_MCP_CLIENT_VERSION no Version of the MCP host; only valid when IFLOW_MCP_CLIENT is set

Example: Claude Desktop / Claude Code

{
  "mcpServers": {
    "iflow-search": {
      "command": "iflow-search-mcp",
      "env": {
        "IFLOW_API_KEY": "sk-..."
      }
    }
  }
}

Behavior

  • Transport: stdio only. stdout is reserved for the JSON-RPC stream; all human-readable output (banner, errors) goes to stderr.
  • Exit codes: 0 on clean shutdown after SIGINT / SIGTERM, 1 on configuration or init error.
  • Errors: tool failures return isError: true results with a stable structuredContent.error.code (mirroring the core SDK's error contract).

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_search_mcp-0.1.0a0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_search_mcp-0.1.0a0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file iflow_search_mcp-0.1.0a0.tar.gz.

File metadata

  • Download URL: iflow_search_mcp-0.1.0a0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for iflow_search_mcp-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 5e81a9df143d8dbf50f6a85bced777f03e9d3d555155450cc0857d57a533f153
MD5 7fe67f8d4697580d9aeb2232ed299540
BLAKE2b-256 2cee544cf3020e2019765dce52cbcc92aff7d43910ae195b6e4283140af8d305

See more details on using hashes here.

File details

Details for the file iflow_search_mcp-0.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_search_mcp-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 97199ffed104cc8fa61cdeeca7eae2933c51ce7372750809cd593ea753eb3c57
MD5 fce8d1df951af6b178affe7e7978c5a1
BLAKE2b-256 0342887f77f05ff60fa4cb3a06dcddb521f3452a1c818621667765944b97241b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page