You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. ---
  2. sidebar_position: 3
  3. slug: /mcp_client
  4. ---
  5. # RAGFlow MCP client example
  6. We provide a *prototype* MCP client example for testing [here](https://github.com/infiniflow/ragflow/blob/main/mcp/client/client.py).
  7. :::danger IMPORTANT
  8. If your MCP server is running in host mode, include your acquired API key in your client's `headers` as shown below:
  9. ```python
  10. async with sse_client("http://localhost:9382/sse", headers={"api_key": "YOUR_KEY_HERE"}) as streams:
  11. # Rest of your code...
  12. ```
  13. :::