Unable to connect MCP server to Claude Desktop (docker approach)
Have you searched if there an existing issue for this?
- [x] I have searched the existing issues
Python version (python --version)
3.10.20
Scrapling version (scrapling.version)
latest
Dependencies version (pip3 freeze)
??
What's your operating system?
MacOS Tahoe 26.04
Are you using a separate virtual environment?
Yes
Expected behavior
MCP should instlal
Actual behavior
Steps To Reproduce
- Follow https://scrapling.readthedocs.io/en/latest/ai/mcp-server.html, run
docker pull pyd4vinci/scrapling - Edit
claude_desktop_config.jsonfile accordingly - Restart Claude Code
- You can see the error then
The docker fails exits when started. And Claude Code shows an error:
Claude Desktop MCP error log (click to view)
``` 2026-05-15T07:35:03.795Z [ScraplingServer] [info] Initializing server... { metadata: undefined } 2026-05-15T07:35:03.858Z [ScraplingServer] [info] Using MCP server command: /usr/local/bin/docker with args and path: { metadata: { args: [ 'run', '-i', '--rm', 'scrapling', 'mcp', [length]: 5 ], paths: [ '/opt/local/bin', '/opt/local/sbin', '/Users/sanjar.afaq/.local/bin', '/Users/sanjar/.antigravity/antigravity/bin', '/opt/homebrew/bin', '/Users/sanjar.afaq/.cargo/bin', '/Users/sanjar.afaq/Library/pnpm', '/Users/sanjar.afaq/Library/Android/sdk/platform-tools', '/Users/sanjar.afaq/Library/Android/sdk/tools', '/usr/local/bin', '/usr/local/sbin', '~/bin', '/opt/homebrew/opt/libpq/bin', '/Users/sanjar.afaq/.rbenv/shims', '/Users/sanjar.afaq/.pyenv/shims', '/opt/homebrew/sbin', '/Users/sanjar.afaq/.local/share/zinit/polaris/bin', '/System/Cryptexes/App/usr/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin', '/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin', '/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin', '/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin', '/opt/pkg/env/active/bin', '/opt/pmk/env/global/bin', '/opt/homebrew/bin/', '/opt/homebrew/lib/ruby/gems/3.0.0/bin', '/Users/sanjar.afaq/Library/Android/sdk/emulator', '/opt/homebrew/lib/node_modules', '/Users/sanjar.afaq/go/bin', '/Users/sanjar.afaq/bin', [length]: 33 ] } } %o 2026-05-15T07:35:03.859Z [ScraplingServer] [info] Server started and connected successfully { metadata: undefined } Unable to find image 'scrapling:latest' locally 2026-05-15T07:35:04.880Z [ScraplingServer] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{"extensions":{"io.modelcontextprotocol/ui":{"mimeTypes":["text/html;profile=mcp-app"]}}},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined } docker: Error response from daemon: pull access denied for scrapling, repository does not exist or may require 'docker login'Run 'docker run --help' for more information
2026-05-15T07:35:05.482Z [ScraplingServer] [info] Server transport closed { metadata: undefined }
2026-05-15T07:35:05.482Z [ScraplingServer] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. console.error('...') in JavaScript, print('...', file=sys.stderr) in python) and it will appear in this log. { metadata: undefined }
2026-05-15T07:35:05.482Z [ScraplingServer] [error] Server disconnected. For troubleshooting guidance, please visit our debugging documentation { metadata: { context: 'connection', stack: undefined } }
2026-05-15T07:35:05.482Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:35:05.482Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:35:45.234Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:35:45.234Z [ScraplingServer] [info] Shutting down server... { metadata: undefined }
2026-05-15T07:35:49.486Z [ScraplingServer] [info] Initializing server... { metadata: undefined }
2026-05-15T07:35:50.156Z [ScraplingServer] [info] Using MCP server command: /usr/local/bin/docker with args and path: {
metadata: {
args: [ 'run', '-i', '--rm', 'scrapling', 'mcp', [length]: 5 ],
paths: [
'/opt/local/bin',
'/opt/local/sbin',
'/Users/sanjar.afaq/.local/bin',
'/Users/sanjar/.antigravity/antigravity/bin',
'/opt/homebrew/bin',
'/Users/sanjar.afaq/.cargo/bin',
'/Users/sanjar.afaq/Library/pnpm',
'/Users/sanjar.afaq/Library/Android/sdk/platform-tools',
'/Users/sanjar.afaq/Library/Android/sdk/tools',
'/usr/local/bin',
'/usr/local/sbin',
'~/bin',
'/opt/homebrew/opt/libpq/bin',
'/Users/sanjar.afaq/.rbenv/shims',
'/Users/sanjar.afaq/.pyenv/shims',
'/opt/homebrew/sbin',
'/Users/sanjar.afaq/.local/share/zinit/polaris/bin',
'/System/Cryptexes/App/usr/bin',
'/usr/bin',
'/bin',
'/usr/sbin',
'/sbin',
'/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin',
'/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin',
'/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin',
'/opt/pkg/env/active/bin',
'/opt/pmk/env/global/bin',
'/opt/homebrew/bin/',
'/opt/homebrew/lib/ruby/gems/3.0.0/bin',
'/Users/sanjar.afaq/Library/Android/sdk/emulator',
'/opt/homebrew/lib/node_modules',
'/Users/sanjar.afaq/go/bin',
'/Users/sanjar.afaq/bin',
[length]: 33
]
}
} %o
2026-05-15T07:35:50.157Z [ScraplingServer] [info] Server started and connected successfully { metadata: undefined }
Unable to find image 'scrapling:latest' locally
2026-05-15T07:35:50.552Z [ScraplingServer] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{"extensions":{"io.modelcontextprotocol/ui":{"mimeTypes":["text/html;profile=mcp-app"]}}},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }
docker: Error response from daemon: pull access denied for scrapling, repository does not exist or may require 'docker login'
Run 'docker run --help' for more information
2026-05-15T07:35:51.595Z [ScraplingServer] [info] Server transport closed { metadata: undefined }
2026-05-15T07:35:51.595Z [ScraplingServer] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. console.error('...') in JavaScript, print('...', file=sys.stderr) in python) and it will appear in this log. { metadata: undefined }
2026-05-15T07:35:51.595Z [ScraplingServer] [error] Server disconnected. For troubleshooting guidance, please visit our debugging documentation { metadata: { context: 'connection', stack: undefined } }
2026-05-15T07:35:51.595Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:35:51.596Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:36:16.600Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:36:16.600Z [ScraplingServer] [info] Shutting down server... { metadata: undefined }
2026-05-15T07:39:57.692Z [ScraplingServer] [info] Initializing server... { metadata: undefined }
2026-05-15T07:39:58.389Z [ScraplingServer] [info] Using MCP server command: /usr/local/bin/docker with args and path: {
metadata: {
args: [ 'run', '-i', '--rm', 'scrapling', 'mcp', [length]: 5 ],
paths: [
'/opt/local/bin',
'/opt/local/sbin',
'/Users/sanjar.afaq/.local/bin',
'/Users/sanjar/.antigravity/antigravity/bin',
'/opt/homebrew/bin',
'/Users/sanjar.afaq/.cargo/bin',
'/Users/sanjar.afaq/Library/pnpm',
'/Users/sanjar.afaq/Library/Android/sdk/platform-tools',
'/Users/sanjar.afaq/Library/Android/sdk/tools',
'/usr/local/bin',
'/usr/local/sbin',
'~/bin',
'/opt/homebrew/opt/libpq/bin',
'/Users/sanjar.afaq/.rbenv/shims',
'/Users/sanjar.afaq/.pyenv/shims',
'/opt/homebrew/sbin',
'/Users/sanjar.afaq/.local/share/zinit/polaris/bin',
'/System/Cryptexes/App/usr/bin',
'/usr/bin',
'/bin',
'/usr/sbin',
'/sbin',
'/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin',
'/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin',
'/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin',
'/opt/pkg/env/active/bin',
'/opt/pmk/env/global/bin',
'/opt/homebrew/bin/',
'/opt/homebrew/lib/ruby/gems/3.0.0/bin',
'/Users/sanjar.afaq/Library/Android/sdk/emulator',
'/opt/homebrew/lib/node_modules',
'/Users/sanjar.afaq/go/bin',
'/Users/sanjar.afaq/bin',
[length]: 33
]
}
} %o
2026-05-15T07:39:58.390Z [ScraplingServer] [info] Server started and connected successfully { metadata: undefined }
Unable to find image 'scrapling:latest' locally
2026-05-15T07:39:58.789Z [ScraplingServer] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{"extensions":{"io.modelcontextprotocol/ui":{"mimeTypes":["text/html;profile=mcp-app"]}}},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }
docker: Error response from daemon: pull access denied for scrapling, repository does not exist or may require 'docker login'
Run 'docker run --help' for more information
2026-05-15T07:39:59.781Z [ScraplingServer] [info] Server transport closed { metadata: undefined }
2026-05-15T07:39:59.781Z [ScraplingServer] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. console.error('...') in JavaScript, print('...', file=sys.stderr) in python) and it will appear in this log. { metadata: undefined }
2026-05-15T07:39:59.781Z [ScraplingServer] [error] Server disconnected. For troubleshooting guidance, please visit our debugging documentation { metadata: { context: 'connection', stack: undefined } }
2026-05-15T07:39:59.781Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:39:59.781Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:40:15.417Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:40:15.417Z [ScraplingServer] [info] Shutting down server... { metadata: undefined }
2026-05-15T07:40:18.608Z [ScraplingServer] [info] Initializing server... { metadata: undefined }
2026-05-15T07:40:19.272Z [ScraplingServer] [info] Using MCP server command: /usr/local/bin/docker with args and path: {
metadata: {
args: [ 'run', '-i', '--rm', 'scrapling', 'mcp', [length]: 5 ],
paths: [
'/opt/local/bin',
'/opt/local/sbin',
'/Users/sanjar.afaq/.local/bin',
'/Users/sanjar/.antigravity/antigravity/bin',
'/opt/homebrew/bin',
'/Users/sanjar.afaq/.cargo/bin',
'/Users/sanjar.afaq/Library/pnpm',
'/Users/sanjar.afaq/Library/Android/sdk/platform-tools',
'/Users/sanjar.afaq/Library/Android/sdk/tools',
'/usr/local/bin',
'/usr/local/sbin',
'~/bin',
'/opt/homebrew/opt/libpq/bin',
'/Users/sanjar.afaq/.rbenv/shims',
'/Users/sanjar.afaq/.pyenv/shims',
'/opt/homebrew/sbin',
'/Users/sanjar.afaq/.local/share/zinit/polaris/bin',
'/System/Cryptexes/App/usr/bin',
'/usr/bin',
'/bin',
'/usr/sbin',
'/sbin',
'/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin',
'/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin',
'/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin',
'/opt/pkg/env/active/bin',
'/opt/pmk/env/global/bin',
'/opt/homebrew/bin/',
'/opt/homebrew/lib/ruby/gems/3.0.0/bin',
'/Users/sanjar.afaq/Library/Android/sdk/emulator',
'/opt/homebrew/lib/node_modules',
'/Users/sanjar.afaq/go/bin',
'/Users/sanjar.afaq/bin',
[length]: 33
]
}
} %o
2026-05-15T07:40:19.273Z [ScraplingServer] [info] Server started and connected successfully { metadata: undefined }
Unable to find image 'scrapling:latest' locally
2026-05-15T07:40:19.609Z [ScraplingServer] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{"extensions":{"io.modelcontextprotocol/ui":{"mimeTypes":["text/html;profile=mcp-app"]}}},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }
docker: Error response from daemon: pull access denied for scrapling, repository does not exist or may require 'docker login'
Run 'docker run --help' for more information
2026-05-15T07:40:20.595Z [ScraplingServer] [info] Server transport closed { metadata: undefined }
2026-05-15T07:40:20.595Z [ScraplingServer] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. console.error('...') in JavaScript, print('...', file=sys.stderr) in python) and it will appear in this log. { metadata: undefined }
2026-05-15T07:40:20.595Z [ScraplingServer] [error] Server disconnected. For troubleshooting guidance, please visit our debugging documentation { metadata: { context: 'connection', stack: undefined } }
2026-05-15T07:40:20.595Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
2026-05-15T07:40:20.595Z [ScraplingServer] [info] Client transport closed { metadata: undefined }
</details>
Docker error:
Docker error (click to view)
``` { "Id": "d83d3d3af2a407c922c226100ca3ce2094a9c02018d7b2253a7a7ab8b36942f0", "Created": "2026-05-15T07:43:04.540280625Z", "Path": "uv", "Args": [ "run", "scrapling", "--help" ], "State": { "Status": "exited", "Running": false, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 0, "ExitCode": 0, "Error": "", "StartedAt": "2026-05-15T07:43:04.568558583Z", "FinishedAt": "2026-05-15T07:43:05.929779875Z" }, "Image": "sha256:bc71e9132fe4289b97da720dabb626599d090892b5eae7378bf9204918c0e9a3", "ResolvConfPath": "/var/lib/docker/containers/d83d3d3af2a407c922c226100ca3ce2094a9c02018d7b2253a7a7ab8b36942f0/resolv.conf", "HostnamePath": "/var/lib/docker/containers/d83d3d3af2a407c922c226100ca3ce2094a9c02018d7b2253a7a7ab8b36942f0/hostname", "HostsPath": "/var/lib/docker/containers/d83d3d3af2a407c922c226100ca3ce2094a9c02018d7b2253a7a7ab8b36942f0/hosts", "LogPath": "/var/lib/docker/containers/d83d3d3af2a407c922c226100ca3ce2094a9c02018d7b2253a7a7ab8b36942f0/d83d3d3af2a407c922c226100ca3ce2094a9c02018d7b2253a7a7ab8b36942f0-json.log", "Name": "/adoring_lamarr", "RestartCount": 0, "Driver": "overlayfs", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, "HostConfig": { "Binds": [], "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "bridge", "PortBindings": {}, "RestartPolicy": { "Name": "no", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": null, "ConsoleSize": [ 0, 0 ], "CapAdd": null, "CapDrop": null, "CgroupnsMode": "private", "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": null, "GroupAdd": null, "IpcMode": "private", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "Isolation": "", "CpuShares": 0, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": null, "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": null, "DeviceCgroupRules": null, "DeviceRequests": null, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "OomKillDisable": null, "PidsLimit": null, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0, "MaskedPaths": [ "/proc/acpi", "/proc/asound", "/proc/interrupts", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/sched_debug", "/proc/scsi", "/proc/timer_list", "/proc/timer_stats", "/sys/devices/virtual/powercap", "/sys/firmware" ], "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ] }, "Storage": { "RootFS": { "Snapshot": { "Name": "overlayfs" } } }, "Mounts": [], "Config": { "Hostname": "d83d3d3af2a4", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "ExposedPorts": { "8000/tcp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=C.UTF-8", "GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305", "PYTHON_VERSION=3.12.13", "PYTHON_SHA256=c08bc65a81971c1dd5783182826503369466c7e67374d1646519adf05207b684", "DEBIAN_FRONTEND=noninteractive", "PYTHONUNBUFFERED=1", "PYTHONDONTWRITEBYTECODE=1" ], "Cmd": [ "--help" ], "Image": "pyd4vinci/scrapling:latest", "Volumes": null, "WorkingDir": "/app", "Entrypoint": [ "uv", "run", "scrapling" ], "Labels": { "io.modelcontextprotocol.server.name": "io.github.D4Vinci/Scrapling", "org.opencontainers.image.created": "2026-05-11T02:00:14.588Z", "org.opencontainers.image.description": "An undetectable, powerful, flexible, high-performance Python library that makes Web Scraping easy and effortless as it should be!", "org.opencontainers.image.documentation": "https://scrapling.readthedocs.io/en/latest/", "org.opencontainers.image.licenses": "BSD", "org.opencontainers.image.revision": "9ee35014fea2fe962167d973e94d2cd6c33f34aa", "org.opencontainers.image.source": "https://github.com/D4Vinci/Scrapling", "org.opencontainers.image.title": "Scrapling", "org.opencontainers.image.url": "https://scrapling.readthedocs.io/en/latest/", "org.opencontainers.image.vendor": "D4Vinci", "org.opencontainers.image.version": "main" }, "StopTimeout": 1 }, "NetworkSettings": { "SandboxID": "", "SandboxKey": "", "Ports": {}, "Networks": { "bridge": { "IPAMConfig": null, "Links": null, "Aliases": null, "DriverOpts": null, "GwPriority": 0, "NetworkID": "432b47e05cdd8aa3777eead2e9a7953ef89d12b27c9f021f2513ea04b15989ca", "EndpointID": "", "Gateway": "", "IPAddress": "", "MacAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "DNSNames": null } } }, "ImageManifestDescriptor": { "mediaType": "application/vnd.oci.image.manifest.v1+json", "digest": "sha256:985d67067bd74bef4bea6bb8da6da666b6d063b151284b2d85485c1599460862", "size": 2205, "platform": { "architecture": "arm64", "os": "linux" } } } ```
Hey @sanjarcode, I opened #283 to fix this.
The issue is that the docs say to pull pyd4vinci/scrapling, but the config uses scrapling, which causes the denied error.
Workaround until merged: use the full image name in claude_desktop_config.json:
{
"mcpServers": {
"ScraplingServer": {
"command": "docker",
"args": ["run", "-i", "--rm", "pyd4vinci/scrapling", "mcp"]
}
}
}
works! thanks man
It's as @yetval pointed out. It's merged to the main branch and will be updated on the website in a few minutes. Thanks for raising this