原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Hashgrid DNA (local)

作者:hashgrid-labs版本 1.3.0i★ –i在你的电脑上运行
注册名称ai.hashgrid/sdk

安装

概览

作者提供的说明(英文原文)

Search that learns from feedback, over text and images: embeds locally, sends DNA only vectors.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆
  • 你需要填写:HASHGRID_API_KEY, OPENAI_API_KEY, VOYAGE_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: HASHGRID_API_KEY, HASHGRID_EMBEDDER, OPENAI_API_KEY, VOYAGE_API_KEY, HASHGRID_INDEX

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "sdk": {
      "command": "uvx",
      "args": [
        "hashgrid",
        "mcp"
      ],
      "env": {
        "HASHGRID_API_KEY": "your-value",
        "HASHGRID_EMBEDDER": "your-value",
        "OPENAI_API_KEY": "your-value",
        "VOYAGE_API_KEY": "your-value",
        "HASHGRID_INDEX": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add sdk --env HASHGRID_API_KEY=your-value --env HASHGRID_EMBEDDER=your-value --env OPENAI_API_KEY=your-value --env VOYAGE_API_KEY=your-value --env HASHGRID_INDEX=your-value -- uvx hashgrid mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "sdk": {
      "command": "uvx",
      "args": [
        "hashgrid",
        "mcp"
      ],
      "env": {
        "HASHGRID_API_KEY": "your-value",
        "HASHGRID_EMBEDDER": "your-value",
        "OPENAI_API_KEY": "your-value",
        "VOYAGE_API_KEY": "your-value",
        "HASHGRID_INDEX": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "sdk": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "hashgrid",
        "mcp"
      ],
      "env": {
        "HASHGRID_API_KEY": "your-value",
        "HASHGRID_EMBEDDER": "your-value",
        "OPENAI_API_KEY": "your-value",
        "VOYAGE_API_KEY": "your-value",
        "HASHGRID_INDEX": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • HASHGRID_API_KEY 机密 env
    Your DNA API key, hg-…. Leave it out and the create_grid tool makes a grid and saves its key in the local index.
  • HASHGRID_EMBEDDER env
    The embedder, one per grid: fastembed: (local; fastembed:Qdrant/clip-ViT-B-32 for images), openai: or voyage: .
  • OPENAI_API_KEY 机密 env
    For an openai: embedder.
  • VOYAGE_API_KEY 机密 env
    For a voyage: embedder.
  • HASHGRID_INDEX env
    The local index: a sqlite file that maps DNA ids to your text.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 hashgrid.ai 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 7226 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 7226 个服务器的 74% 更新
  • 基础检查结果等于或优于此分类中其他 7226 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Hashgrid DNA (local) 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:HASHGRID_API_KEY, OPENAI_API_KEY, VOYAGE_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.3.0)于13天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT3天前更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT20天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT44天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

hashgrid

The Python client for Hashgrid DNA, a search engine that learns from feedback. You add items and search them; you score the results; DNA learns from the scores, so the next searches rank better.

DNA works on embeddings only and never sees your content. This package embeds text and images on your machine, sends DNA only the vectors, and keeps the content with you, in a local index.

pip install 'hashgrid[local]'

[local] adds the local embedders, which run on your CPU with no account. To embed with OpenAI or Voyage instead, install plain hashgrid and use your own key.

Each grid has its own API key (hg-…). Creating a grid needs no key:

from hashgrid.dna import Grid

grid, api_key = Grid.create("mine") print(api_key) # shown only now: keep it, e.g. as $HASHGRID_API_KEY

A grid created this way holds up to 1024 items and queries (grid.dna.get_grid().max_nodes), and each address can create a few grids a day. Need more? Write to office@hashgrid.ai.

Add, search, score

from hashgrid.dna import Grid

grid = Grid() # Index() and DNA(), from the environment: the key from $HASHGRID_API_KEY

grid.add_many({ "/cities/lisbon": "Lisbon, a hilly coastal capital", "/cities/oslo": "Oslo, between fjords and forest", })

query, results = grid.ask("a capital by the sea", k=2, prefix="/cities/") results[0].content # "Lisbon, a hilly coastal capital" grid.score(query, results[0], 1.0) # a good result grid.score(query, results[1], -0.5) # a poor one

  • Items have a key, a path unique in the grid. Only items are found by searches, and prefix narrows a search to keys that start with it. Without a key, an item is keyed by a hash of its content, so adding the same content again returns the same item.
  • Queries have no key. grid.search(query, k) gives the next k results not shown before.
  • Scores run from -1 (wrong) to 1 (perfect). You can score a result, or any pair you already know is good or bad. Only scores train DNA.

Each Result has the item's id, key, content (from the index) and your score. grid.results(query) lists a query's results so far, and grid.get and grid.delete take an item or its id. grid.delete_grid() deletes the whole grid, for good, and its content in the index. AsyncGrid does the same with await.

Images

Content is text or an Image, from a file or from bytes. Images need an embedder that takes them:

from hashgrid.dna import Grid

from hashgrid.index import Image, Index

grid = Grid(Index("fastembed:Qdrant/clip-ViT-B-32")) grid.add(Image("photos/beach.jpg"), key="/photos/beach") query, results = grid.ask("a sunny beach", k=5) # text finds images query, results = grid.ask(Image("another.jpg")) # and so do images

The index

Index is the local half of a grid. It embeds content, and keeps it in sqlite by DNA id, so results come back with their content. Index() uses the default embedder and ~/.hashgrid/index.sqlite; $HASHGRID_EMBEDDER and $HASHGRID_INDEX change them, and so do its arguments:

Index("voyage:voyage-multimodal-3")

Index(OpenAI("text-embedding-3-small", dimensions=512), path="my-index.sqlite") Index(path=":memory:") # keeps nothing

Use one embedder per grid. Vectors from different models do not compare. The index records each grid's embedder and refuses another, and a grid refuses vectors whose length differs from its own.

embeddertakesrunsneeds
fastembed:BAAI/bge-small-en-v1.5 (default)textlocallyhashgrid[local]
fastembed:Qdrant/clip-ViT-B-32, fastembed:jinaai/jina-clip-v1text, imageslocallyhashgrid[local]
openai:text-embedding-3-smalltextOpenAIOPENAI_API_KEY
voyage:voyage-3.5textVoyage AIVOYAGE_API_KEY
voyage:voyage-multimodal-3text, imagesVoyage AIVOYAGE_API_KEY

Other fastembed, OpenAI and Voyage models work too: fastembed: , openai: , voyage: . DNA takes up to 2048 values, so openai:text-embedding-3-large is shortened to 2048 (openai: @ sets the length). With OpenAI or Voyage, your content goes to that provider under your own key, and still never to DNA. Your own embedder is any object with a spec, the modalities it takes ({"text"}, {"text", "image"}) and embed(contents, kind), where kind is "document" or "query".

The API, typed

DNA and AsyncDNA have one method per route of the HTTP API, named after it.

from hashgrid.dna import DNA

dna = DNA("hg-…") item = dna.create_node([0.1, 0.2, 0.3], key="/items/1") query = dna.create_node([0.1, 0.2, 0.25]) edge = dna.create_edge(query, prefix="/items/") # the search; None when nothing is left dna.put_edge(query, edge, 1.0) # the score

methodroute
create_grid(name), acreate_grid(name) (functions, no key)POST /
get_grid()GET /
delete_grid()DELETE /
list_nodes(cursor, limit), iter_nodes()GET /nodes
get_node(nid)GET /nodes/{nid}
create_node(emb, key=None)POST /nodes
update_node(nid, key=…, emb=…)PATCH /nodes/{nid}
delete_node(nid)DELETE /nodes/{nid}
list_edges(nid, cursor, limit), iter_edges(nid)GET /nodes/{nid}/edges
get_edge(nid, eid)GET /nodes/{nid}/edges/{eid}
create_edge(nid, prefix=""), alias searchPOST /nodes/{nid}/edges
put_edge(nid, eid, score), alias scorePUT /nodes/{nid}/edges/{eid}
update_edge(nid, eid, score)PATCH /nodes/{nid}/edges/{eid}
delete_edge(nid, eid)DELETE /nodes/{nid}/edges/{eid}

Ids are 16-character hex strings. A method also takes the Node or Edge itself. Errors are Unauthorized (401), Forbidden (403: the grid holds its node limit, or is frozen), NotFound (404), Conflict (409, the key is taken), Invalid (422) and TooManyRequests (429: too many grids created from your address; try later), all subclasses of DNAError.

MCP server

hashgrid-mcp is a local MCP server, over stdio, for agents that work with text and images. It embeds on your machine, sends DNA only the vectors, and keeps the content in the local index.

{

"mcpServers": { "hashgrid": { "command": "uvx", "args": ["--from", "hashgrid[local]", "hashgrid-mcp"], "env": { "HASHGRID_API_KEY": "hg-…" } } } }

With Claude Code:

claude mcp add hashgrid -e HASHGRID_API_KEY=hg-… -- uvx --from 'hashgrid[local]' hashgrid-mcp

Without a key, the agent can call create_grid: the server makes a grid and saves its key in the local index, then uses it from then on.

The tools:

  • add_item(text | image, key?): add an item, text or the path of an image file.
  • search(query | image, k, prefix): the best results, with their text or image path.
  • more_results(query_id, k, prefix): the next ones.
  • score(query_id, item_id, score): score a result.
  • delete_item(item_id): delete an item.
  • create_grid(name): make a grid when the server has no key.
  • delete_grid(confirm): delete the grid, for good; confirm is its name.

The first call downloads the local model, about 70 MB. For images, set HASHGRID_EMBEDDER=fastembed:Qdrant/clip-ViT-B-32.

variabledefault
HASHGRID_API_KEYthe key create_grid saved in the index
HASHGRID_EMBEDDERfastembed:BAAI/bge-small-en-v1.5; with openai:… or voyage:…, plain uvx --from hashgrid hashgrid-mcp is enough
HASHGRID_INDEX~/.hashgrid/index.sqlite
HASHGRID_DNA_URLhttps://dna.hashgrid.ai/api/v1

The server records each grid's embedder in the index, and refuses another one for that grid.

The hosted server at https://dna.hashgrid.ai/mcp takes vectors, not content. Use it if your agent makes its own embeddings.

License

MIT

问 PopNx