Scrapling MCP Server
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
D4D4Vinci/Scrapling107k近 7 天新增 1,982 个 star
Read, search and edit an EtherPK knowledge graph of Markdown notes, synced or in a folder.
An MCP server that gives an AI agent (Claude Code, Codex, Cursor and others) one of your EtherPK knowledge graphs. It runs on the agent's device. The agent can search your notes by words or by meaning, follow links, list tasks, and read and edit documents without breaking EtherPK's format.
This package is EtherPK's Headless Client, EtherPK without an editor. It serves a graph folder
on your device or a graph synced through a Sync Server, with the same tools for both. Protected
documents are never shown to the agent, not even by name; graph_info only counts them.
Needs Node.js 24 or later.
In EtherPK, open the graph's Settings → Agents and select Create an Agent Setup Code. The tab shows two commands with your server, the code and the graph filled in. On your own Sync Server, the tab links to the server's Access tokens page, which creates the code.
# Once per computer. When this terminal and EtherPK, on a device where your Encryption Keys are
# unlocked, show the same code, approve there, then press y here.
npx @appsoftwareltd/etherpk-mcp login --sync-server https://sync.etherpk.com --code <Agent Setup Code>
# Register the graph with your agent (Claude Code shown, the Agents tab has the others).
claude mcp add --scope user etherpk -- npx @appsoftwareltd/etherpk-mcp serve --sync-server https://sync.etherpk.com --graph <graph id>
No sign-in and no Sync Server:
claude mcp add --scope user etherpk -- npx @appsoftwareltd/etherpk-mcp serve --folder /path/to/your/notes
The folder must already be an EtherPK graph: a folder that holds pages/ and journals/ folders. EtherPK
makes them when it opens a folder, and the agent skill makes them for a new
one. Settings → Agents shows this command with the path filled in once the folder's path is set
on the General tab.
In Claude Code, the EtherPK plugin registers the server and adds the agent skill in one step:
/plugin install etherpk --marketplace appsoftwareltd/etherpk-client
Set its options with /plugin: Synced graph takes a graph's name or id, and Graph folder
takes a folder. Set one of the two. A synced graph still needs the login above, once per
device: until then, each tool answers with the command to run, and a call after the login
connects without a restart.
The server describes its tools and the graph to the agent, so nothing else needs setting up. To
make the agent always use them, add a line like this to your CLAUDE.md, or your agent's
equivalent:
My notes are stored in EtherPK. Use the etherpk MCP tools for anything I've written down, and
searchin semantic mode for questions.
Thirty-six tools, the same for a synced graph and a folder. Each serve serves one graph, and
no tool shows a protected document: a read answers as if there were no such document, and a write
onto its name is refused.
| Group | Tools | Notes |
|---|---|---|
| Find and read | graph_info, list_documents, read_document, read_documents, search, backlinks, tasks, graph_insights, graph_path | list_documents can narrow to a range of journal days. graph_insights lists the most-linked concepts, clusters and bridges, and graph_path finds how two concepts connect. |
| Edit | edit_document, append_document, create_page, set_task, set_frontmatter, set_aliases | edit_document replaces one exact, unique piece of text, and on a synced graph it merges with edits made elsewhere. append_document creates the day's journal entry when there is none. |
| Tasks handed over | read_task, add_task_note, set_task | Paste the agent the text Copy agent instruction copies in EtherPK. Its reference still finds the task after lines are added above it, and refuses once the task's words change. |
| Rename | plan_rename, rename | Links to the old name are rewritten. Renaming onto a name in use merges two documents and needs confirming. |
| Images and files | upload_asset, read_asset, list_assets | upload_asset returns the markdown to paste into a document. It and read_asset report an image's size in pixels, which a line placing the image in a drawing states. It refuses hidden files and folders (.ssh, .env), the Headless Client's own config and cache, and files over 100 MiB. |
| Publishing | list_publications, create_publication, update_publication, publish | publish writes to the folder set with the publish command. The agent can't choose one, and it never publishes to a GitHub repository, which only the publish command commits to. |
| Themes | list_themes, read_theme, read_theme_file, create_theme, customise_publication_theme, write_theme_file, delete_theme_file, import_theme_folder, delete_theme, preview_theme | Bundled themes are read-only, and customising one copies it into the graph. preview_theme renders a site, with screenshots when a browser is set up. |
A synced graph's tools answer from this device's copy. While that copy cannot reach the Sync Server,
every answer ends with a note saying since when, and graph_info reports connection. Edits made
elsewhere since then are not in the answer.
read_asset, read_theme and preview_theme write only in the graph's downloads folder in the
cache directory, and import_theme_folder reads only from there. A folder outside it is refused,
so a prompt hidden in a note cannot steer the agent into writing or reading elsewhere.
Any number of agents can use one graph at once. The first serve for a graph starts a background
process that holds the graph, and every serve passes its agent's requests to it, so there is one
copy of the graph in memory and one index on disk.
ETHERPK_MCP_HOST_IDLE_SECONDS). An agent still connected starts a new one on its next request.running lists the processes with their agents and logs, and stop ends them.graph_unavailable with the reason. A request 10 seconds or
more later tries again, so fixing the cause needs no restart.host.log in the graph's cache directory. publish runs in the same
process.search matches words. After one setup step it also matches meaning, so "when do I pay my taxes"
finds the note that says "due 31 January". A small embedding model runs on this device. Nothing
is sent anywhere, and protected documents are never embedded.
npx @appsoftwareltd/etherpk-mcp semantic setup
Setup installs a native runtime of about 300 MB (through your npm) and a 23 MB model into the cache directory, once per device.
search takes mode: "semantic", or "hybrid" for words and meaning together. Each
result has the document, its breadcrumb of headings and parent bullets, the passage and a
similarity score.embedded, total and complete, and
semantic status shows each cached graph.npx @appsoftwareltd/etherpk-mcp serve --graph <id> </dev/null & (or --folder <path>).ETHERPK_MCP_SEMANTIC_THREADS changes the thread count. Set it in the agent
registration's env.serve --no-semantic keeps one registration text-only.login adds this device to your account.
--code trades an Agent Setup Code for an Agent Token. Create the code in
EtherPK's Agents settings (the Graphs page's Agents tab, or a synced graph's Settings →
Agents), or on the Sync Server's Access tokens page, where the token is then listed as
"Agent on ". An agent token can read and write your graphs. It
cannot reset or replace your Encryption Keys, make tokens, invite people or delete graphs. It
stops working after 30 days unused, when you revoke it, and when you reset your Encryption Keys.--pat or ETHERPK_PAT gives an account-wide access token instead. login
unlocks with it, then swaps it for an Agent Token and revokes it. If the swap fails, login
fails and keeps nothing.y in the terminal. Press n if the codes differ.r while login waits, or pass --recovery-code, and type
your Recovery Code. ETHERPK_RECOVERY_CODE supplies it for a scripted setup.login then lists the graphs the account can reach.
graphs lists the synced graphs each signed-in account can reach, with the name, the id and your
role. serve --graph takes the id or the name. (unnamed) means a graph has no name yet.
Run login once for each Sync Server. --sync-server then says which server a command means. It
can be left out while only one server is signed in.
pages/ and journals/. serve never creates them, so a mistyped path is
refused rather than turned into an empty graph.publish renders one publication of a graph into a folder on this device and prints the report:
npx @appsoftwareltd/etherpk-mcp publish --graph <id or name> --publication <id> --out <dir>
--out is remembered for that graph and publication. Later runs without it, and the agent's
publish tool, write to the same folder..html files, assets/, theme/ and the search and feed files are rewritten,
and files that no longer belong are removed. Everything else in the folder is left alone.--dry-run in place of --out renders and checks the publication and prints the whole report,
with the names of the pages it mentions, without writing anything. It needs no folder. Keep its
output out of public logs. The agent's publish tool takes dryRun: true for the same check.ETHERPK_MAP_STYLE_URL names another style, and a
drawing as a picture with its fonts inside it. diagrams setup installs a Chromium of about 170 MB
into the cache directory, once per device, and a publish whose pages hold any of them refuses
until then. ETHERPK_CHROMIUM names a Chromium already on the
device instead, which NixOS needs.list_publications, or Settings → Publish in EtherPK, shows the publication ids.To publish straight to a branch of a GitHub repository, as one commit that the host watching the
branch deploys, give --github in place of --out, with a GitHub token that may read and write the
repository's Contents:
ETHERPK_GITHUB_TOKEN=<token> npx @appsoftwareltd/etherpk-mcp publish --graph <id or name> --publication <id> --github <owner/name[#branch]>
main unless #branch names another. A publish never creates the branch.--github is remembered in place of the folder, so later runs need only the token.--replace publishes anyway.publish tool never commits to a repository, because a commit can put the site
live. It can check the publication with dryRun: true.The etherpk agent skill teaches an agent to make a blog, docs site or wiki folder in EtherPK's
format inside any project, to check it with publish --dry-run, and to publish it with this
command. For a synced graph it sends the agent to the tools above. Install it in the project the
agent works in, or with -g for every project:
npx skills add appsoftwareltd/etherpk-client
Every command is npx @appsoftwareltd/etherpk-mcp <command>. For the short form, etherpk-mcp,
install the package globally once with npm install -g @appsoftwareltd/etherpk-mcp. --help
(-h) prints the command reference and --version (-v) the version.
| Command | What it does |
|---|---|
login --sync-server <url> [--code <Agent Setup Code>] [--recovery-code] | Sign this device in to your account, unlock your Encryption Keys, and list the graphs the account can reach. |
graphs [--sync-server <url>] | List the synced graphs each signed-in account can reach, with name, id and your role. |
serve --graph <id or name> [--sync-server <url>] [--no-semantic] | Serve one synced graph to the agent over stdio. |
serve --folder <path> [--no-semantic] | Serve a graph folder the same way. |
running | List the graphs served on this device, with each one's background process, agents and log. |
stop [--graph <id or name> [--sync-server <url>] | --folder <path> | --all] | Save a graph and end its background process, or every graph's when none is named. |
logout [--sync-server <url> | --all] | Revoke that server's token, forget it and the Encryption Keys, stop its graphs' background processes and delete its cached graphs. --all does this for every server and clears the whole cache, the semantic runtime and model included. |
semantic setup | Install the embedding runtime and model into the cache directory. |
semantic status | Whether semantic search is set up, and each cached graph's embedding progress. |
semantic remove | Delete the runtime and model. Stored embeddings stay, and are reused if you set up again. |
publish (--graph <id or name> | --folder <path>) --publication <id> [--out <dir> | --github <owner/name[#branch]> | --dry-run] [--replace] | Publish one publication of a graph to a folder, or as a commit to a GitHub repository, and print the report. |
diagrams setup | Install a Chromium into the cache directory, so a publish can draw Mermaid diagrams, maps and drawings. |
diagrams status | Which browser a publish would use, if any, and whether it starts from this terminal. Exits with 1 and the browser's error when it does not start. |
| Flag | Applies to | Meaning |
|---|---|---|
--sync-server <url> | login, graphs, serve --graph, publish --graph, stop --graph, logout | Which Sync Server the command means. Required for login, and elsewhere optional while only one server is signed in. serve and logout refuse to guess between several. |
--code <Agent Setup Code> | login | The one-time Agent Setup Code. It works once, within 10 minutes. |
--pat <token> | login | An account-wide access token instead of an Agent Setup Code. login swaps it for an agent token and revokes it. |
--recovery-code | login | Unlock with your Recovery Code instead of Device Approval. Pressing r while login waits does the same. |
--graph <id or name> | serve, publish, stop | The synced graph. Not with --folder. |
--folder <path> | serve, publish, stop | The graph folder. Not with --graph or --sync-server. |
--no-semantic | serve | Keep this agent text-only even when semantic search is set up. |
--all | logout, stop | Every server, or every graph. |
--publication <id> | publish | Which publication of the graph. |
--out <dir> | publish | Where the site goes. Remembered for the graph and publication. |
--github <owner/name[#branch]> | publish | Commit the site to this repository's branch instead. Remembered in place of --out. |
--replace | publish | Let a first publish to a repository replace files on a branch that holds something else. |
--dry-run | publish | Render and check the publication, print the whole report, and write nothing. |
Set a variable that serve should see in the agent registration's env as well as your shell,
because the agent starts serve with its own environment.
| Variable | Meaning |
|---|---|
ETHERPK_PAT | An account-wide access token for a scripted login, swapped for an agent token and revoked. |
ETHERPK_RECOVERY_CODE | The Recovery Code for a scripted login --recovery-code. |
ETHERPK_MCP_SECRETS | file keeps the agent token and Encryption Keys in the login file even where there is a keychain. |
ETHERPK_MCP_CONFIG | The login file. Default ~/.config/etherpk/mcp.json, or under XDG_CONFIG_HOME when that is set. |
ETHERPK_MCP_CACHE_DIR | The cache directory for graphs, the semantic runtime and the model. Default ~/.cache/etherpk/mcp, or under XDG_CACHE_HOME when that is set. |
ETHERPK_MCP_PUBLISH_CONFIG | The file that remembers each publication's folder or repository. Default publish.json beside the login file. |
ETHERPK_GITHUB_TOKEN | The GitHub token publish --github commits with. Read from the shell that runs publish. |
ETHERPK_GITHUB_API_URL | GitHub Enterprise Server's API (https://<host>/api/v3) in place of github.com's. |
ETHERPK_MCP_SEMANTIC_THREADS | Threads for the embedding model. Default a quarter of the cores, at most four. |
ETHERPK_MCP_HOST_IDLE_SECONDS | How long a graph's background process stays after its last agent has gone. Default 300. |
ETHERPK_CHROMIUM | A Chromium on this device for drawing diagrams, maps and drawings, instead of the one diagrams setup installs. |
ETHERPK_MAP_STYLE_URL | The MapLibre style a published map's picture is drawn over. Default EtherPK's map host; empty draws maps on a plain background. |
PLAYWRIGHT_BROWSERS_PATH | Where diagrams setup installs Chromium and a publish looks for the installed instance. Default browsers/ in the cache directory. |
ETHERPK_MCP_DEBUG_MEMORY | 1 logs the process's memory use every 10 seconds and with every progress line. |
login can
use one: the macOS Keychain, or a Linux desktop's keyring through secret-tool (the
libsecret-tools package on Debian and Ubuntu). The login file, ~/.config/etherpk/mcp.json,
then names only the server. Otherwise they are in the login file, readable only by your user,
like a signed-in browser's storage. login says which. Any program running as you can ask the
keychain for them, so run only agents you trust with your account, and never let one read, print
or search ~/.config/etherpk.~/.cache/etherpk/mcp/, so a restart fetches
only what changed. It holds your notes readably. The Sync Server stays the source of truth, and a
newer version of this package rebuilds a cache it can't read.local/<folder name>-<hash of its path>/ in the cache directory. Nothing is written into the
folder.host.json while its background process runs, and host.log,
which names the graph's documents and is deleted with the cache. The process listens on a socket
in a directory only your user can open ($XDG_RUNTIME_DIR/etherpk-mcp, or etherpk-mcp-<uid> in
the temporary directory), or on Windows on a named pipe with a random name.On Windows the login file and the cache are under C:\Users\<you>\.config\etherpk\ and
C:\Users\<you>\.cache\etherpk\.
To cut an agent off, revoke its agent token on the Sync Server's Access tokens page. logout
revokes the token itself and deletes the keys and cached graphs on this device. If the device
or its login file may have been copied, also select Replace Encryption Keys in
EtherPK, so the keys saved there no longer open your account.
The package's source is apps/mcp in the etherpk-client repository. It compiles the Client's sync,
crypto and index code in through a $lib alias, so it builds from the repository root, not from
this folder alone:
pnpm install --frozen-lockfile
pnpm --filter @appsoftwareltd/etherpk-mcp check # type check
pnpm --filter @appsoftwareltd/etherpk-mcp test # unit tests, no server needed
pnpm --filter @appsoftwareltd/etherpk-mcp build # dist/main.js, run with node dist/main.js
The repository's CI publishes each release to npm, at the same version as the Client. To check that a version is on the registry:
npx -y @appsoftwareltd/etherpk-mcp@<version> --version
The full guide is Using AI agents with your notes. The documents are in the EtherPK Format, which that page specifies for anyone writing a program that reads or writes them. What changed in each release is in the changelog, which covers this package and the EtherPK Client, released together under one version.
The package is available under the Elastic License 2.0 (LICENSE): you may use, copy, modify and self-host it, but not offer it to others as a hosted or managed service. It is source-available, not open source.
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
D4D4Vinci/Scrapling107k近 7 天新增 1,982 个 star
Fetches web content and converts it to Markdown for an LLM to read
MOmodelcontextprotocol/servers92k近 7 天新增 200 个 star
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
EVevery-app/open-seo29k近 7 天新增 630 个 star
Search and discover Agent Skills from the skills.sh registry. Powered by HAPI MCP server.
AGagentskills/agentskills28k近 7 天新增 208 个 star
The search engine for AI agents: cited answers from your local code, docs, specs and logs.
XExerj-org/xerj23k近 7 天新增 2,746 个 star