Skip to content

[Bug]: A timeout occurs when attempting to connect via MCP from LM Studio. #2120

Description

@garmy-ja

crawl4ai version

0.8.6 - 0.9.2

Expected Behavior

Once you configure LMStudio's mcp.json as shown below, Crawl4AI is ready to be used as an MCP.

{
  "mcpServers": {
    "crawl4ai": {
      "url": "http://192.168.xx.xx:11235/mcp/sse",
      "headers": {
        "Authorization": "Bearer xxxxxxxx"
      }
    }
  }
}

Current Behavior

When attempting to establish an MCP connection from LMStudio to Crawl4AI, there is no response from Crawl4AI, and the connection times out after a delay of several tens of seconds.
Since version 0.9.0, Authorization: Bearer has been included in the headers, but the behavior remains unchanged.

Is this reproducible?

Yes

Inputs Causing the Bug

Steps to Reproduce

Code snippets

OS

Docker on Windows 11

Python version

Docker Image

Browser

No response

Browser version

No response

Error logs & Screenshots (if applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugSomething isn't working🩺 Needs TriageNeeds attention of maintainers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions