nectr-mcp
The supplied schema exposes a nectr saved-page library/project toolset, though the README says these older tools were replaced by scan_page/list_sites:
search_library: search saved nectr pages by title or URL, or list recent pages; returns ids, URLs, freshness, and summaries.get_page: read a saved page’s clean markdown by id or original URL, including private pages, with optional character truncation.convert_url: convert a web page, PDF, or DOCX to clean markdown and save it to the nectr library, optionally under a project or with a forced refresh; may count against quota.list_projects: list nectr projects with page counts and publicllms.txtURLs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nectr-mcp search my library for pricing page"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nectr-mcp
An MCP server for nectr, which shows how AI reads a web page.
It gives a model two tools:
scan_page: given a public page's address, it returns what an AI agent gets from it: the size in words and estimated tokens, which AI crawlers the site's robots.txt allows, linked PDFs and whether they hold text, its data tables and the structured data it declares (JSON-LD, microdata, schema.org RDFa), and the text that only appears after JavaScript runs. For pages on your own verified sites, it also returns the page as clean markdown, the tables' rows and the structured data itself.list_sites: lists your sites in nectr and their pages' URLs, so you can see which pages you'll get markdown for.
Coming from 0.3?
scan_pagenow includes the markdown only for pages on your own verified sites. Any other page still gets the full scan, without the markdown.Coming from 0.2? The library tools (
search_library,get_page,convert_url) are gone. Your existingnct_key works with these tools.
Setup
In nectr, open Settings → API keys and create a key. It starts with
nct_.Add the server to your MCP client's configuration. Most desktop and editor clients use an
mcpServersblock like this:
{
"mcpServers": {
"nectr": {
"command": "npx",
"args": ["-y", "nectr-mcp"],
"env": {
"NECTR_API_KEY": "nct_your_key_here"
}
}
}
}Restart the client. The
scan_pageandlist_sitestools should appear.
Node.js 20 or newer is required.
Variable | Required | Default | Purpose |
| yes | — | Your |
| no |
| The nectr site to talk to, for a self-hosted instance. Use its exact https address: the server won't follow a redirect, because the key would be dropped on the way |
Related MCP server: wikibrain
The tools
scan_page
scan_page(url, markdown?, max_chars?) fetches the page twice, with a browser and as plain HTTP, the way AI crawlers do, and returns:
Section | What it says |
Size | Words and estimated tokens of the whole page as markdown, against the raw HTML an agent receives, and the words left without JavaScript |
robots.txt | Whether GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot, Google-Extended and CCBot may fetch the page |
Linked PDFs | Up to 3 PDFs on the same site: pages, words, and whether there's a text layer at all |
Tables | Each data table's title, columns and row count (the first 20). The rows are in the markdown, for a page on one of your verified sites. Left out when the page has none |
Structured data | What the page declares about itself, experimental on nectr's side: each item's schema.org types and where it was declared (JSON-LD, microdata or RDFa, the first 20), and its definition lists. "None" when it declares nothing |
Only with JavaScript | The share of words an agent misses without JavaScript, and the first 10 of those blocks. For a page that isn't on your verified sites, nectr sends only the first 5, shortened, so the tool doesn't count them |
Markdown | The page as markdown, last, and only for a page on one of your verified sites; otherwise the tool says it was left out and points to |
Structured data as JSON | For a page on one of your verified sites, after the markdown: the structured data itself, compact, cut at |
Any public page can be scanned. The tool is read-only: nectr stores nothing from a scan. nectr honours the site's robots.txt for itself, so a page whose robots.txt keeps nectr out isn't fetched.
The full response, field by field, is in the scan API documentation.
list_sites
list_sites() takes no arguments. For each of your sites it gives the domain, whether it's verified (only verified sites get markdown from scan_page), how many pages nectr has copied as markdown, the site's llms.txt address, and the URL of each page (up to 100 per site) with its title and word count. A page nectr couldn't copy shows its status and the reason.
Limits and errors
The server uses the same developer API as any other script, so the API's limits apply: 10 scans a minute from one IP address. Errors are worded so a model knows whether to retry:
nectr says | The model is told |
401: the key is invalid or revoked | Don't retry; you need a new key |
403: robots.txt keeps nectr out, or scans aren't open to the account | nectr's reason; don't retry |
422: the page can't be scanned (not public, not found, a PDF) | nectr's reason, as given |
429: rate limited | How many seconds to wait |
503: nectr is busy | Retry in a few seconds |
A redirect (for example | Don't retry; set |
Security
Your API key is stored in plain text in your MCP client's config file. That's normal for MCP servers, but anyone who can read that file can use the key.
Create a dedicated key for each client, so you can revoke one without breaking the others.
If a key leaks, delete it under Settings → API keys in nectr. It stops working immediately.
This server only ever scans pages and reads your list of sites. The key itself is broader: it has the same access to the nectr API as your account, so treat it like a password.
Development
Running the server needs Node 20+, but developing needs Node 22.12 or newer (Vitest and the MCP Inspector require it). CI uses Node 24.
npm ci # not `npm install`: installs exactly the lockfile and never rewrites it
npm run typecheck
npm test
npm run build
NECTR_API_KEY=nct_... node dist/index.js # speaks MCP over stdioThe tests run against a fake nectr API (test/fake-api.ts) and through a real MCP client over an in-memory transport (test/server.test.ts).
If npm test fails with "Cannot find native binding", the node_modules folder was installed on another platform, for example inside a Linux container. npm install on top of it won't fix it. Delete node_modules and run npm ci again.
Trying it by hand with the MCP Inspector
The MCP Inspector calls the tools directly, without a model, and shows exactly what a model would receive. Build first (npm run build), then use its CLI mode. Put the server command before the options. With the options first, the Inspector reports "No servers found in config file".
# PowerShell; in bash, use $NECTR_API_KEY instead of $k
$k = "nct_your_key"
npx @modelcontextprotocol/inspector --cli node dist/index.js -e NECTR_API_KEY=$k --method tools/list
npx @modelcontextprotocol/inspector --cli node dist/index.js -e NECTR_API_KEY=$k --method tools/call --tool-name scan_page --tool-arg url=https://example.com/
npx @modelcontextprotocol/inspector --cli node dist/index.js -e NECTR_API_KEY=$k --method tools/call --tool-name scan_page --tool-arg url=https://example.com/ --tool-arg markdown=noneAdd -e NECTR_URL=http://localhost:8000 to test against a local nectr backend. There, scans are open to admins only unless the backend runs with SCANS_ENABLED=true; other accounts get a 403. Leave out --cli for the web interface; the argument order is the same.
The Inspector's own dependencies need a newer Node than this server does. If it fails with "Cannot find native binding" after you upgrade Node, delete its cached copy from the npx cache (%LocalAppData%\npm-cache\_npx on Windows, ~/.npm/_npx elsewhere) and run it again.
The quickest sanity check needs no key at all: npx -y nectr-mcp should print "NECTR_API_KEY is not set" and exit.
Publishing
npm version patch # or minor / major; also bump VERSION in src/server.ts and USER_AGENT in src/client.ts
npm publish # prepublishOnly runs typecheck, tests and build firstnpm refuses to publish from an account without two-factor authentication (error E403). Enable it under your npm account settings; npm publish then asks you to confirm in the browser or with --otp=<code>.
License
MIT
Available Tools
4 toolsconvert_urlSave a page to nectrAIdempotent
Convert a web page, PDF or DOCX to clean markdown and save it to the user's nectr library, where it is re-crawled automatically to stay current. Returns the new page's id and summary. Counts against the user's monthly conversion quota unless the page is already saved.
Inputs: url (required), project_id, force_refresh.
get_pageRead a saved pageARead-only
Get the clean markdown of one saved nectr page, by id (from search_library) or by its original URL. Includes when it was last fetched. Works for private pages too.
Inputs: id, url, max_chars.
list_projectsList nectr projectsARead-only
List the user's nectr projects with their page counts and public llms.txt URLs.
Inputs: no named parameters.
search_librarySearch the nectr libraryARead-only
Search the user's saved nectr pages by title or URL. Returns ids, URLs, freshness and a short summary per page, not the page bodies. Omit query to list the most recently refreshed pages.
Inputs: limit, query.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct role: search_library finds pages by metadata, get_page retrieves a page's body, convert_url adds/saves new content, and list_projects enumerates projects. The search-vs-get boundary is well explained (metadata vs. full markdown), so misselection is unlikely.
All four names follow a strict verb_noun snake_case pattern (search_library, get_page, convert_url, list_projects). No mixing of conventions or vague verbs.
Four tools is a tight, well-scoped set that maps cleanly to the core read/add/project workflows. It leans slightly thin for a library service, but each tool earns its place.
The read and create paths are covered (search, get, convert), but there is no delete/update for saved pages and projects can only be listed, not created or managed. These are notable lifecycle gaps an agent would hit.
Maintenance
Related MCP Connectors
Shared project wiki for AI agents: read and write pages, next actions, and activity logs over MCP.
Read-only MCP server for the OrchestKit docs: full-text search + Markdown fetch. No auth.
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Search and manage your team's knowledge from MCP clients.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides a single-writer MCP server for a governance-grade knowledge base of markdown documents with version control and query capabilities.9443 PyPI30Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to maintain a persistent Markdown knowledge base by ingesting sources, searching and reading notes, and creating or updating wiki pages with optimistic locking.13AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to search, read, create, and link notes in a local-first Markdown vault, with indexing, backlinks, and safe writes underneath.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to search and read a personal Markdown wiki, save new notes as captures, and run forge or audit jobs that merge verified updates back into the vault.MIT