{"id":48439879,"url":"https://github.com/wolfsilver/memos-mcp","last_synced_at":"2026-04-06T15:01:04.713Z","repository":{"id":349545318,"uuid":"1202727966","full_name":"wolfsilver/memos-mcp","owner":"wolfsilver","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-06T13:24:31.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T14:33:35.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wolfsilver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-06T10:35:33.000Z","updated_at":"2026-04-06T13:21:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wolfsilver/memos-mcp","commit_stats":null,"previous_names":["wolfsilver/memos-mcp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wolfsilver/memos-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfsilver%2Fmemos-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfsilver%2Fmemos-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfsilver%2Fmemos-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfsilver%2Fmemos-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolfsilver","download_url":"https://codeload.github.com/wolfsilver/memos-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfsilver%2Fmemos-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31477013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T14:34:32.243Z","status":"ssl_error","status_checked_at":"2026-04-06T14:34:31.723Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-06T15:01:01.299Z","updated_at":"2026-04-06T15:01:04.707Z","avatar_url":"https://github.com/wolfsilver.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memos-mcp\n\n\u003e **[中文文档](README_zh.md)**\n\nA [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for [Memos](https://github.com/usememos/memos) — the open-source, self-hosted note-taking service. It communicates with Memos via the official HTTP REST API (v1) and exposes the MCP endpoint over **HTTP** (Streamable HTTP transport).\n\n## Features\n\n| Tool | Description |\n|------|-------------|\n| `search_memos` | Search memos by keyword or CEL filter expression |\n| `get_memo` | Retrieve the full content of a single memo |\n| `create_memo` | Create a new memo |\n| `update_memo` | Update content, visibility, or pinned state |\n| `archive_memo` | Archive a memo (hide from default view) |\n| `delete_memo` | Permanently delete a memo |\n| `comment_memo` | Add a comment to a memo |\n\n## Requirements\n\n- A running [Memos](https://github.com/usememos/memos) instance (v0.22+)\n- Go 1.21+ (only needed to build from source)\n\n## Configuration\n\nThe server is configured via environment variables:\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `MEMOS_SERVER_URL` | **Yes** | Base URL of your Memos instance, e.g. `http://localhost:5230` |\n| `MEMOS_AUTH_TOKEN` | No | API access token for authentication. Generate one in **Memos → Settings → Access Tokens**. If not set, the token can be supplied per-request via the MCP client (see [Client-side token authentication](#client-side-token-authentication)). |\n| `PORT` | No | Port the MCP HTTP server listens on (default: `8080`). |\n\n## Installation\n\n### Docker (recommended)\n\n```bash\ndocker run -d \\\n  -e MEMOS_SERVER_URL=http://your-memos-instance:5230 \\\n  -e MEMOS_AUTH_TOKEN=your_access_token_here \\\n  -p 8080:8080 \\\n  ghcr.io/wolfsilver/memos-mcp:latest\n```\n\n### Build from source\n\n```bash\ngit clone https://github.com/wolfsilver/memos-mcp.git\ncd memos-mcp\ngo build -o memos-mcp .\n```\n\n### Using `go install`\n\n```bash\ngo install github.com/wolfsilver/memos-mcp@latest\n```\n\n## Usage\n\n### With Claude Desktop\n\nAdd the server to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"memos\": {\n      \"type\": \"streamable-http\",\n      \"url\": \"http://localhost:8080/mcp\"\n    }\n  }\n}\n```\n\n### With VS Code (GitHub Copilot)\n\nAdd the following to your VS Code `settings.json` (user or workspace):\n\n```json\n{\n  \"mcp\": {\n    \"servers\": {\n      \"memos\": {\n        \"type\": \"http\",\n        \"url\": \"http://localhost:8080/mcp\",\n        \"headers\": {\n          \"Authorization\": \"Bearer your_access_token_here\"\n        }\n      }\n    }\n  }\n}\n```\n\nOr create a `.vscode/mcp.json` file in your workspace:\n\n```json\n{\n  \"servers\": {\n    \"memos\": {\n      \"type\": \"http\",\n      \"url\": \"http://localhost:8080/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer your_access_token_here\"\n      }\n    }\n  }\n}\n```\n\n### With OpenAI Codex / Codex CLI\n\nPass the MCP server URL when starting a Codex session or configure it in `~/.codex/config.toml`:\n\n```toml\n[[mcp_servers]]\nname = \"memos\"\ntype = \"http\"\nurl  = \"http://localhost:8080/mcp\"\n\n[mcp_servers.headers]\nAuthorization = \"Bearer your_access_token_here\"\n```\n\n### With other MCP clients\n\nRun the server binary directly. It listens on HTTP (default port `8080`) and exposes the MCP endpoint at `/mcp`:\n\n```bash\nexport MEMOS_SERVER_URL=http://localhost:5230\nexport MEMOS_AUTH_TOKEN=your_access_token_here\nexport PORT=8080          # optional, defaults to 8080\n./memos-mcp\n# MCP endpoint: http://localhost:8080/mcp\n```\n\n## Client-side token authentication\n\nInstead of (or in addition to) setting `MEMOS_AUTH_TOKEN` on the server, every MCP client can supply its **own** Memos access token by including a standard HTTP `Authorization` header in each request:\n\n```\nAuthorization: Bearer \u003cyour_access_token\u003e\n```\n\nA per-request token takes precedence over the server-level `MEMOS_AUTH_TOKEN` environment variable. This lets you run a **single memos-mcp instance** that serves multiple users, each authenticating with their own token.\n\n## Tool Reference\n\n### `search_memos`\n\nSearch memos by keyword or a [CEL](https://cel.dev/) filter expression.\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `query` | string | Yes | Keyword or CEL expression, e.g. `\"golang\"` or `\"content.contains('golang')\"` |\n| `page_size` | number | No | Max results to return (default: 20) |\n\n### `get_memo`\n\nRetrieve a single memo by its resource name or UID.\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `name` | string | Yes | Resource name, e.g. `\"memos/abc123\"` or just the UID `\"abc123\"` |\n\n### `create_memo`\n\nCreate a new memo.\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `content` | string | Yes | Markdown content |\n| `visibility` | string | No | `PRIVATE` (default), `PROTECTED`, or `PUBLIC` |\n\n### `update_memo`\n\nUpdate an existing memo. At least one optional field is required.\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `name` | string | Yes | Resource name, e.g. `\"memos/abc123\"` |\n| `content` | string | No | New markdown content |\n| `visibility` | string | No | `PRIVATE`, `PROTECTED`, or `PUBLIC` |\n| `pinned` | boolean | No | Pin or unpin the memo |\n\n### `archive_memo`\n\nArchive a memo so it no longer appears in the default view. The memo can be restored by calling `update_memo` with `state=NORMAL`.\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `name` | string | Yes | Resource name, e.g. `\"memos/abc123\"` |\n\n### `delete_memo`\n\nPermanently delete a memo.\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `name` | string | Yes | Resource name, e.g. `\"memos/abc123\"` |\n\n### `comment_memo`\n\nAdd a comment to a memo.\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `name` | string | Yes | Resource name of the memo to comment on |\n| `content` | string | Yes | Comment text |\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfsilver%2Fmemos-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolfsilver%2Fmemos-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfsilver%2Fmemos-mcp/lists"}