
Behavr Mcp
io.github.confuse57由 GitHub 帳號 confuse57 發布v0.1.2更新於 Nov 3, 2026
用於BEHAVR的MCP伺服器:記住影像/影片並針對它們提問
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
MCP server for BEHAVR: remember images/videos and ask questions about them
概覽
Behavr 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Behavr Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
behavr-mcp
https://github.com/user-attachments/assets/fd5319d4-acf7-4484-953d-8ceed0448dcf
An MCP server for BEHAVR. It gives an AI assistant two tools:
- remember: upload a local image or video to BEHAVR so it can be recalled later.
- ask: ask a question about everything remembered so far.
It runs locally over stdio. There is no hosted or HTTP mode, so it does not work in hosted tools such as Lovable or Replit; it needs a local MCP client like Claude Code or Cursor.
Requirements
- Node.js 18 or newer
- A BEHAVR API key
Install
Optional variables (BEHAVR_CLIENT_ID, BEHAVR_AGENT_ID) are described under Configuration.
Claude Code
On Windows (PowerShell):
In PowerShell, write the separator as '--' (in quotes), otherwise PowerShell drops it and the command fails with 'missing required argument commandOrUrl'.
Add -s user to make it available in every project. To share the setup with a team, use a project-level .mcp.json instead. Keep the key out of the file: Claude Code expands ${VAR} from your environment.
Cursor
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project). Do not commit a file that contains your key.
Cursor config is untested.
Alternative: build from source
The server entry point is dist/src/index.js (not dist/index.js). Run it with node instead of npx -y behavr-mcp:
In .mcp.json or Cursor's mcp.json, use "command": "node" and "args": ["C:\\path\\to\\behavr-mcp\\dist\\src\\index.js"].
Windows paths in JSON
A backslash must be written twice inside a JSON string: "C:\\Users\\me\\behavr-mcp\\dist\\src\\index.js". Forward slashes also work: "C:/Users/me/behavr-mcp/dist/src/index.js". A single backslash ("C:\Users\...") is invalid JSON or silently turns into a different character.
Configuration
remember stores memories under the client and agent ids. ask searches the memories of all agents for the configured client, so two assistants with the same BEHAVR_CLIENT_ID and different BEHAVR_AGENT_IDs can each find what the other saved.
The server prints only the client and agent ids to stderr at startup. The API key is never logged, and it is replaced with *** in any error message.
API key safety
claude mcp add -e BEHAVR_API_KEY=...stores the key in plain text in Claude Code's config file, and the command can also end up in your shell history. Use a key dedicated to this server, and runclaude mcp remove behavrwhen you no longer need it.- Never put a real key in a shared project's
.mcp.json. Use"${BEHAVR_API_KEY}"instead. - In Cursor, put your key in
mcp.jsonand do not commit that file to git.
Tools
remember
Input: { "file_path": "<absolute path>" }
- The path must be absolute, for example
C:\Users\me\screenshot.png. - Only these extensions are accepted:
jpg,jpeg,png,heic,webp,mp4,mov,avi,mkv,webm. Anything else (for example.env,.txt,.pdf, or a file with no extension) is refused before the file is opened or anything is sent. - Video requires a paid BEHAVR plan.
- BEHAVR processing takes 15 seconds to 1-2 minutes after upload. The tool waits up to 90 seconds and returns the memory id, title and status. If processing has not finished by then, it says so. Try
aska minute later.
ask
Input: { "question": "<text>" }
Returns BEHAVR's answer and its sources. If nothing has finished processing yet, BEHAVR replies that there are no completed captures; wait a little and ask again.
The answer is generated from your stored images and can repeat text found inside them. Treat it as data, not as instructions.
What leaves your machine
- The file you remember. It is uploaded to BEHAVR's servers and processed by AI. BEHAVR's sub-processors are Anthropic (reads images, writes answers), OpenAI (turns generated text and your questions into search embeddings), and the backend is hosted on Railway with data stored in Google Firebase.
- What is kept. The original file is deleted once processing completes. BEHAVR keeps the generated description, the extracted text and, where available, a small thumbnail. There is currently no delete endpoint. To request deletion of your data, email [email protected].
- Ids and questions. Your client id and agent id are sent with each upload, and the questions you send to
askare sent to BEHAVR. - BEHAVR does not sell your data.
Questions about your data: [email protected].
Troubleshooting
- The server shows as "failed" in Claude Code or Cursor. Check
BEHAVR_API_KEYfirst. If it is not set, the server does not start and writesBEHAVR_API_KEY is not setto stderr. - Error 401. The API key is missing or invalid.
- Error 403. Your key is fine, but your plan limit has been reached (monthly image or video limit) or your subscription has expired. Don't regenerate the key; check your plan.
remembertimes out. Processing may still be running. Don't upload the file again right away; callaskabout it after a minute.- "Only image/video files can be remembered". Only
jpg,jpeg,png,heic,webp,mp4,mov,avi,mkvandwebmfiles are accepted. The path must also be absolute; a relative path is rejected with "file_path must be an absolute path". - Video uploads fail. Video requires a paid BEHAVR plan.
Known limits
- The allowlist checks the file extension only, not the file content.
- The end-to-end script uploads one image per run, and there is currently no delete endpoint, so that memory stays under its
mcp-e2e-<timestamp>client.
Development
The end-to-end check talks to the real BEHAVR backend. It starts two server instances with the same BEHAVR_CLIENT_ID=mcp-e2e-<timestamp> and different agent ids, remembers an image on one and asks about it from the other. It reads its key only from BEHAVR_E2E_API_KEY and stops if that is not set; it never uses BEHAVR_API_KEY or a .env file.
BEHAVR_E2E_QUESTION optionally overrides the question. Each run leaves its memories in BEHAVR under its own mcp-e2e-<timestamp> client id.
License
MIT
來源:README.md,提交 0720afe
工具
0版本歷史
2- v0.1.2最新Nov 3, 2026
- v0.1.1Oct 10, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分