scrapecrate-mcp 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scrapecrate_mcp-1.0.0/.dockerignore +5 -0
- scrapecrate_mcp-1.0.0/.gitignore +61 -0
- scrapecrate_mcp-1.0.0/Dockerfile +9 -0
- scrapecrate_mcp-1.0.0/LICENSE +21 -0
- scrapecrate_mcp-1.0.0/PKG-INFO +67 -0
- scrapecrate_mcp-1.0.0/README.md +48 -0
- scrapecrate_mcp-1.0.0/glama.json +4 -0
- scrapecrate_mcp-1.0.0/pyproject.toml +44 -0
- scrapecrate_mcp-1.0.0/server.json +38 -0
- scrapecrate_mcp-1.0.0/src/scrapecrate_mcp/__init__.py +3 -0
- scrapecrate_mcp-1.0.0/src/scrapecrate_mcp/catalog.json +1110 -0
- scrapecrate_mcp-1.0.0/src/scrapecrate_mcp/server.py +61 -0
- scrapecrate_mcp-1.0.0/src/scrapecrate_mcp/tools.py +145 -0
- scrapecrate_mcp-1.0.0/uv.lock +1275 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# OS / IDE
|
|
2
|
+
.DS_Store
|
|
3
|
+
Thumbs.db
|
|
4
|
+
.idea/
|
|
5
|
+
.vscode/
|
|
6
|
+
*.swp
|
|
7
|
+
*~
|
|
8
|
+
|
|
9
|
+
# Secrets and local env (only *.example files are committed)
|
|
10
|
+
.env
|
|
11
|
+
.env.*
|
|
12
|
+
!.env.example
|
|
13
|
+
**/.env
|
|
14
|
+
**/.env.*
|
|
15
|
+
!**/.env.example
|
|
16
|
+
*.pem
|
|
17
|
+
*.key
|
|
18
|
+
certbot/
|
|
19
|
+
backups/
|
|
20
|
+
.deploy_state
|
|
21
|
+
traefik/dynamic.yml.bak
|
|
22
|
+
|
|
23
|
+
# Logs
|
|
24
|
+
*.log
|
|
25
|
+
logs/
|
|
26
|
+
|
|
27
|
+
# Frontend
|
|
28
|
+
frontend/node_modules/
|
|
29
|
+
frontend/.next/
|
|
30
|
+
frontend/out/
|
|
31
|
+
frontend/coverage/
|
|
32
|
+
frontend/playwright-report/
|
|
33
|
+
frontend/test-results/
|
|
34
|
+
frontend/*.tsbuildinfo
|
|
35
|
+
frontend/next-env.d.ts
|
|
36
|
+
frontend/src/generated/
|
|
37
|
+
|
|
38
|
+
# Python (backend, sdks)
|
|
39
|
+
**/.venv/
|
|
40
|
+
**/__pycache__/
|
|
41
|
+
**/*.py[cod]
|
|
42
|
+
**/.pytest_cache/
|
|
43
|
+
**/.ruff_cache/
|
|
44
|
+
**/.mypy_cache/
|
|
45
|
+
**/.coverage
|
|
46
|
+
**/htmlcov/
|
|
47
|
+
**/*.egg-info/
|
|
48
|
+
**/build/
|
|
49
|
+
**/dist/
|
|
50
|
+
|
|
51
|
+
# TypeScript SDK
|
|
52
|
+
sdks/typescript/node_modules/
|
|
53
|
+
|
|
54
|
+
# Smoke test reports
|
|
55
|
+
smoke-tests/reports/*.md
|
|
56
|
+
|
|
57
|
+
# Claude Code worktrees / local settings
|
|
58
|
+
.claude/worktrees/
|
|
59
|
+
.claude/settings.local.json
|
|
60
|
+
letsencrypt/
|
|
61
|
+
frontend/prisma/dev.db*
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Runs the ScrapeCrate MCP server over stdio (registries' automated checks, container use).
|
|
2
|
+
# Usage: docker run -i --rm -e SCRAPECRATE_API_KEY=... scrapecrate-mcp
|
|
3
|
+
# The hosted server (no install, OAuth sign-in) is https://api.scrapecrate.com/mcp.
|
|
4
|
+
FROM python:3.12-slim
|
|
5
|
+
WORKDIR /app
|
|
6
|
+
COPY pyproject.toml README.md LICENSE ./
|
|
7
|
+
COPY src ./src
|
|
8
|
+
RUN pip install --no-cache-dir .
|
|
9
|
+
ENTRYPOINT ["scrapecrate-mcp"]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ScrapeCrate
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: scrapecrate-mcp
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: MCP server for ScrapeCrate: YouTube, Google Maps, Trustpilot and Meta Ad Library data as tools for AI assistants
|
|
5
|
+
Project-URL: Homepage, https://scrapecrate.com
|
|
6
|
+
Project-URL: Documentation, https://scrapecrate.com/docs/mcp
|
|
7
|
+
Author: ScrapeCrate
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: ai,google maps,mcp,meta ad library,trustpilot,web data,youtube
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Requires-Dist: httpx>=0.27.0
|
|
13
|
+
Requires-Dist: mcp<2,>=1.2
|
|
14
|
+
Provides-Extra: dev
|
|
15
|
+
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
|
|
16
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
17
|
+
Requires-Dist: ruff>=0.6.0; extra == 'dev'
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# ScrapeCrate MCP server
|
|
21
|
+
|
|
22
|
+
<!-- mcp-name: com.scrapecrate/scrapecrate -->
|
|
23
|
+
|
|
24
|
+
Gives Claude, Cursor, Windsurf and any MCP client every ScrapeCrate endpoint as a tool:
|
|
25
|
+
YouTube (transcripts, metadata, comments, channels, search), Google Maps (places, details,
|
|
26
|
+
reviews), Trustpilot (companies, reviews) and the Meta Ad Library (ads, advertisers).
|
|
27
|
+
One tool per endpoint, built from the live catalog, plus `account_balance`.
|
|
28
|
+
|
|
29
|
+
## Hosted server (no install, no key)
|
|
30
|
+
|
|
31
|
+
Add `https://api.scrapecrate.com/mcp` as a remote MCP server (Streamable HTTP) and sign in with your
|
|
32
|
+
ScrapeCrate account when the client asks: Claude (Settings → Connectors → Add custom connector),
|
|
33
|
+
ChatGPT (developer mode connector, OAuth), or Claude Code:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
claude mcp add --transport http scrapecrate https://api.scrapecrate.com/mcp
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Same tools and prices as the local server below, billed to the signed-in account.
|
|
40
|
+
|
|
41
|
+
## Local server (API key)
|
|
42
|
+
|
|
43
|
+
Create an API key at https://scrapecrate.com/dashboard/api-keys, then add to your client:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"mcpServers": {
|
|
48
|
+
"scrapecrate": {
|
|
49
|
+
"command": "uvx",
|
|
50
|
+
"args": ["scrapecrate-mcp"],
|
|
51
|
+
"env": { "SCRAPECRATE_API_KEY": "YOUR_API_KEY" }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Claude Code: `claude mcp add scrapecrate -e SCRAPECRATE_API_KEY=YOUR_API_KEY -- uvx scrapecrate-mcp`
|
|
58
|
+
|
|
59
|
+
Tool calls cost the same credits as API calls; failed calls are free.
|
|
60
|
+
Docs: https://scrapecrate.com/docs/mcp
|
|
61
|
+
|
|
62
|
+
## Development
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
uv venv && uv pip install -e ".[dev]" && pytest
|
|
66
|
+
SCRAPECRATE_BASE_URL=http://localhost:8070 SCRAPECRATE_API_KEY=... scrapecrate-mcp
|
|
67
|
+
```
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# ScrapeCrate MCP server
|
|
2
|
+
|
|
3
|
+
<!-- mcp-name: com.scrapecrate/scrapecrate -->
|
|
4
|
+
|
|
5
|
+
Gives Claude, Cursor, Windsurf and any MCP client every ScrapeCrate endpoint as a tool:
|
|
6
|
+
YouTube (transcripts, metadata, comments, channels, search), Google Maps (places, details,
|
|
7
|
+
reviews), Trustpilot (companies, reviews) and the Meta Ad Library (ads, advertisers).
|
|
8
|
+
One tool per endpoint, built from the live catalog, plus `account_balance`.
|
|
9
|
+
|
|
10
|
+
## Hosted server (no install, no key)
|
|
11
|
+
|
|
12
|
+
Add `https://api.scrapecrate.com/mcp` as a remote MCP server (Streamable HTTP) and sign in with your
|
|
13
|
+
ScrapeCrate account when the client asks: Claude (Settings → Connectors → Add custom connector),
|
|
14
|
+
ChatGPT (developer mode connector, OAuth), or Claude Code:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
claude mcp add --transport http scrapecrate https://api.scrapecrate.com/mcp
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Same tools and prices as the local server below, billed to the signed-in account.
|
|
21
|
+
|
|
22
|
+
## Local server (API key)
|
|
23
|
+
|
|
24
|
+
Create an API key at https://scrapecrate.com/dashboard/api-keys, then add to your client:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"mcpServers": {
|
|
29
|
+
"scrapecrate": {
|
|
30
|
+
"command": "uvx",
|
|
31
|
+
"args": ["scrapecrate-mcp"],
|
|
32
|
+
"env": { "SCRAPECRATE_API_KEY": "YOUR_API_KEY" }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Claude Code: `claude mcp add scrapecrate -e SCRAPECRATE_API_KEY=YOUR_API_KEY -- uvx scrapecrate-mcp`
|
|
39
|
+
|
|
40
|
+
Tool calls cost the same credits as API calls; failed calls are free.
|
|
41
|
+
Docs: https://scrapecrate.com/docs/mcp
|
|
42
|
+
|
|
43
|
+
## Development
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
uv venv && uv pip install -e ".[dev]" && pytest
|
|
47
|
+
SCRAPECRATE_BASE_URL=http://localhost:8070 SCRAPECRATE_API_KEY=... scrapecrate-mcp
|
|
48
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "scrapecrate-mcp"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "MCP server for ScrapeCrate: YouTube, Google Maps, Trustpilot and Meta Ad Library data as tools for AI assistants"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [{ name = "ScrapeCrate" }]
|
|
13
|
+
keywords = ["mcp", "ai", "youtube", "google maps", "trustpilot", "meta ad library", "web data"]
|
|
14
|
+
dependencies = [
|
|
15
|
+
"mcp>=1.2,<2",
|
|
16
|
+
"httpx>=0.27.0",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
[project.optional-dependencies]
|
|
20
|
+
dev = ["pytest>=8.0", "pytest-asyncio>=0.24", "ruff>=0.6.0"]
|
|
21
|
+
|
|
22
|
+
[project.urls]
|
|
23
|
+
Homepage = "https://scrapecrate.com"
|
|
24
|
+
Documentation = "https://scrapecrate.com/docs/mcp"
|
|
25
|
+
|
|
26
|
+
[project.scripts]
|
|
27
|
+
scrapecrate-mcp = "scrapecrate_mcp.server:main"
|
|
28
|
+
|
|
29
|
+
[tool.hatch.build.targets.wheel]
|
|
30
|
+
packages = ["src/scrapecrate_mcp"]
|
|
31
|
+
|
|
32
|
+
[tool.pytest.ini_options]
|
|
33
|
+
asyncio_mode = "auto"
|
|
34
|
+
asyncio_default_fixture_loop_scope = "function"
|
|
35
|
+
|
|
36
|
+
[tool.ruff]
|
|
37
|
+
line-length = 110
|
|
38
|
+
target-version = "py310"
|
|
39
|
+
|
|
40
|
+
[tool.ruff.lint]
|
|
41
|
+
select = ["E", "W", "F", "I", "B", "UP"]
|
|
42
|
+
|
|
43
|
+
[tool.hatch.build.targets.sdist]
|
|
44
|
+
exclude = ["tests"]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "com.scrapecrate/scrapecrate",
|
|
4
|
+
"title": "ScrapeCrate",
|
|
5
|
+
"description": "YouTube, Google Maps, Trustpilot and Meta Ad Library data as tools, paid with one credit balance.",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"websiteUrl": "https://scrapecrate.com/docs/mcp",
|
|
8
|
+
"icons": [
|
|
9
|
+
{
|
|
10
|
+
"src": "https://scrapecrate.com/icon.svg",
|
|
11
|
+
"mimeType": "image/svg+xml"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"packages": [
|
|
15
|
+
{
|
|
16
|
+
"registryType": "pypi",
|
|
17
|
+
"identifier": "scrapecrate-mcp",
|
|
18
|
+
"version": "1.0.0",
|
|
19
|
+
"transport": {
|
|
20
|
+
"type": "stdio"
|
|
21
|
+
},
|
|
22
|
+
"environmentVariables": [
|
|
23
|
+
{
|
|
24
|
+
"name": "SCRAPECRATE_API_KEY",
|
|
25
|
+
"description": "Your ScrapeCrate API key, from https://scrapecrate.com/dashboard/api-keys",
|
|
26
|
+
"isRequired": true,
|
|
27
|
+
"isSecret": true
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"remotes": [
|
|
33
|
+
{
|
|
34
|
+
"type": "streamable-http",
|
|
35
|
+
"url": "https://api.scrapecrate.com/mcp"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|