npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@marknest/mcp-server

v0.2.0

Published

MCP stdio server for the MarkNest public API.

Downloads

171

Readme

MarkNest MCP Server

Stdio MCP server for connecting AI assistants to the MarkNest public V1 API.

Current coordinated release: 0.2.0.

This package intentionally uses only documented public endpoints under /api/v1. It does not call internal app endpoints for writes.

Tools

  • marknest_list_documents
  • marknest_get_document
  • marknest_create_document
  • marknest_save_summary
  • marknest_update_document
  • marknest_delete_document
  • marknest_list_document_shares
  • marknest_get_document_share
  • marknest_get_document_share_for_document
  • marknest_create_document_share
  • marknest_update_document_share
  • marknest_delete_document_share
  • marknest_list_document_versions
  • marknest_get_document_version
  • marknest_list_folders
  • marknest_get_folder
  • marknest_create_folder
  • marknest_update_folder
  • marknest_delete_folder
  • marknest_list_folder_documents
  • marknest_list_tags
  • marknest_create_tag
  • marknest_update_tag
  • marknest_merge_tag
  • marknest_delete_tag
  • marknest_list_tag_documents
  • marknest_list_files
  • marknest_get_file
  • marknest_download_file
  • marknest_upload_file
  • marknest_update_file
  • marknest_delete_file
  • marknest_search_chunks — semantic search across document chunks (RAG retrieval; requires rag:read)
  • marknest_get_chunk — fetch one full chunk by ID (requires rag:read)

Document Listing

marknest_list_documents returns document summaries by default. Summary rows omit content and rendered_html to match the public V1 API list behavior and keep MCP responses small.

Use these options when needed:

  • include_content: true appends include=content and returns content plus rendered_html in list rows.
  • full_text_search: true appends search_scope=full_text; without it, search matches titles only.
  • page and per_page control pagination.

Prefer marknest_get_document when the client needs one full document body.

Configuration

Set these environment variables in your MCP client config:

MARKNEST_BASE_URL=https://api.marknest.net
MARKNEST_API_KEY=mk_your_public_api_key

Create the API key from MarkNest dashboard Settings -> API Keys. Grant the abilities needed by the tools you want the client to use:

  • documents:read
  • documents:write
  • folders:read
  • folders:write
  • tags:read
  • tags:write
  • files:read
  • files:write
  • rag:read — required by marknest_search_chunks and marknest_get_chunk
  • shares:read, shares:write — required by document-share tools

Safety-sensitive tools

  • marknest_merge_tag is irreversible and requires explicit source and target tag IDs.
  • Share creation or access-policy changes may expose content. The caller must explicitly identify the document and access policy.
  • marknest_download_file requires an explicit output_path; it refuses to overwrite an existing file unless overwrite: true is supplied. Use disposition: inline to call the inline endpoint.

Semantic Search (RAG)

marknest_search_chunks runs hybrid vector + keyword retrieval over the user's knowledge base and returns chunk excerpts with heading_path breadcrumbs and document slugs for citation. marknest_get_chunk fetches the full chunk text when the excerpt is not enough. The API key must have the rag:read ability; both tools call POST /api/v1/search/semantic and GET /api/v1/documents/{document_id}/chunks/{chunk_id}.

These tools let an AI assistant (Claude Desktop, ChatGPT, etc.) answer questions from a user's MarkNest knowledge base without MarkNest itself hosting an LLM — the assistant receives the chunks and constructs the answer.

Run

Via npx (no local checkout needed):

npx @marknest/[email protected]

Or from this package:

pnpm --filter @marknest/mcp-server start

Example MCP client entry:

{
  "mcpServers": {
    "marknest": {
      "command": "npx",
      "args": ["-y", "@marknest/[email protected]"],
      "env": {
        "MARKNEST_BASE_URL": "https://api.marknest.net",
        "MARKNEST_API_KEY": "mk_your_public_api_key"
      }
    }
  }
}

MARKNEST_BASE_URL defaults to https://api.marknest.net and can be omitted unless you target a different deployment.

Smoke Test

pnpm --filter @marknest/mcp-server smoke