Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat: add Solana memo media MCP

nirholas9cf9a0d178ee
diff --git a/docs/mcp-solana-memo-media.md b/docs/mcp-solana-memo-media.md
new file mode 100644
index 000000000..822b95b09
--- /dev/null
+++ b/docs/mcp-solana-memo-media.md
@@ -0,0 +1,5 @@
+# Solana Memo Media MCP
+
+`@three-ws/solana-memo-media-mcp` turns embedded image data URIs in Solana SPL Memo instructions into safe inline MCP images. It removes the copy-paste path through a data-URI converter while retaining the transaction signature, immutable digest, and validation result needed for provenance.
+
+Install it with `claude mcp add solana-memo-media -- npx -y @three-ws/solana-memo-media-mcp`. See the package [README](../packages/solana-memo-media-mcp/README.md) for every tool, parameter, safety limit, and RPC configuration option.
diff --git a/docs/mcp.md b/docs/mcp.md
index 34ac750e3..875336dc7 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -43,7 +43,7 @@ The MCP server configuration is at `.mcp.json` in the project root, which Claude
## The full three.ws MCP ecosystem
-This page documents the hosted avatar/3D server at `/api/mcp`, but it's one of **72 three.ws MCP servers**, all listed in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas), so any MCP-compatible client can discover them by name.
+This page documents the hosted avatar/3D server at `/api/mcp`, but it's one of **73 three.ws MCP servers**, all listed in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas), so any MCP-compatible client can discover them by name.
The hosted servers are also self-describing: [`https://three.ws/.well-known/mcp.json`](https://three.ws/.well-known/mcp.json) is a machine-readable directory of every hosted endpoint with its transport, auth model, and a one-line description, so an agent can enumerate all of them with a single fetch.
@@ -61,7 +61,7 @@ There are two kinds. **Hosted remote servers** run over Streamable HTTP with not
| pump.fun | `/api/pump-fun-mcp` | Free pump.fun + Solana token tools; `get_new_tokens` and `get_trending_tokens` read the live pump.fun feed with no indexer needed; `pumpfun_upload_metadata` needs a key |
| IBM x402 | `/api/ibm-mcp` | Pay-per-use IBM Granite AI |
-**Forty-one install-and-run servers** on npm under the `@three-ws` scope, each running over stdio with one command:
+**Forty-two install-and-run servers** on npm under the `@three-ws` scope, each running over stdio with one command:
```bash
# 3D & avatars
@@ -116,6 +116,7 @@ npx -y @three-ws/activity-mcp # trending agents/coins, $THREE holder board
# More AI & capability
npx -y @three-ws/vision-mcp # analyze & describe images via the three.ws vision pipeline
+npx -y @three-ws/solana-memo-media-mcp # render validated image data from Solana SPL Memos
npx -y @three-ws/brain-mcp # run any LLM through the multi-provider router
npx -y @three-ws/audio-mcp # TTS, STT, audio-to-face lipsync & motion-capture clips
npx -y @three-ws/alibaba-cloud-mcp # Qwen chat + embeddings on your own DashScope key
@@ -152,6 +153,7 @@ Deep dives — every tool, argument, env var, and example:
- **Hosted remote:** [3D Studio (free)](./mcp-studio.md) · [3D Studio (paid)](./mcp-3d-studio.md) · [Agent wallet](./mcp-agent.md) · [x402 Bazaar](./mcp-x402-bazaar.md) · [IBM x402](./ibm-x402-mcp.md)
- **Runs against your machine:** [Blender MCP](./blender-mcp.md) drives the Blender installed on your own computer, headless: inspect, convert, render and script 3D files, plus text-to-3D straight into a scene.
- **Install-and-run:** each npm server ships its usage guide (tools, arguments, env vars, examples) in its package README on [npmjs.com/org/three-ws](https://www.npmjs.com/org/three-ws). The [MCP Tools Catalog](./mcp-tools.md) maps every tool to its server and price.
+- **Solana Memo Media:** [full guide](./mcp-solana-memo-media.md) for validating and rendering data URI images embedded in SPL Memo instructions.
---
diff --git a/package.json b/package.json
index 5e3cd009d..be83b94f8 100644
--- a/package.json
+++ b/package.json
@@ -109,6 +109,7 @@
"packages/agenc-mcp",
"packages/agora-mcp",
"packages/vision-mcp",
+ "packages/solana-memo-media-mcp",
"packages/brain-mcp",
"packages/audio-mcp",
"packages/kol-mcp",
diff --git a/packages/solana-memo-media-mcp/LICENSE b/packages/solana-memo-media-mcp/LICENSE
new file mode 100644
index 000000000..b5ae2a4e1
--- /dev/null
+++ b/packages/solana-memo-media-mcp/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2026 nirholas
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/packages/solana-memo-media-mcp/README.md b/packages/solana-memo-media-mcp/README.md
new file mode 100644
index 000000000..23724d318
--- /dev/null
+++ b/packages/solana-memo-media-mcp/README.md
@@ -0,0 +1,72 @@
+# @three-ws/solana-memo-media-mcp
+
+Read and display image data URIs embedded in Solana SPL Memo instructions. Instead of copying a `data:image/...;base64,...` memo payload into a browser converter, give an AI assistant the transaction signature and receive the validated image inline.
+
+This is a keyless, read-only stdio MCP server. It never signs, sends, uploads, caches, or modifies chain data.
+
+## Install
+
+```bash
+claude mcp add solana-memo-media -- npx -y @three-ws/solana-memo-media-mcp
+```
+
+For Cursor, Claude Desktop, or another stdio MCP client:
+
+```json
+{
+ "mcpServers": {
+ "solana-memo-media": {
+ "command": "npx",
+ "args": ["-y", "@three-ws/solana-memo-media-mcp"]
+ }
+ }
+}
+```
+
+## Tools
+
+| Tool | Purpose |
+| --- | --- |
+| `extract_solana_memo_media` | Fetch one finalized transaction and extract supported image data URIs from top-level and inner Memo instructions. |
+| `decode_solana_memo_data_uri` | Decode one already-copied data URI locally. No network call. |
+| `find_solana_memo_media` | Inspect up to 20 recent finalized transactions for an address and return matching memo media. |
+| `get_solana_memo_media_status` | Show the local policy and RPC failover hosts. No network call. |
+
+## Example
+
+Ask an MCP client: "Show any image embedded in Solana transaction `<signature>`." It calls:
+
+```json
+{ "signature": "<base58 Solana transaction signature>" }
+```
+
+The response includes a concise JSON record plus MCP `image` content. JSON metadata contains the source signature, MIME type, byte length, SHA-256, and dimensions when the file format exposes them. The raw data URI is intentionally not echoed into text output.
+
+## Safety and provenance
+
+An SPL Memo is arbitrary signed text. A data URI is only a convention inside that text, not a Solana media standard and not an endorsement by a wallet, explorer, or this package.
+
+- Only `image/png`, `image/jpeg`, `image/webp`, and `image/gif` are accepted.
+- SVG and all executable or document media are rejected.
+- Decoded content is capped at 262,144 bytes.
+- The declared MIME type must match PNG, JPEG, WebP, or GIF file signatures before an image is returned.
+- The server reports a SHA-256 digest so callers can preserve an exact reference.
+- Verify the transaction signer, program, and surrounding transaction context independently before trusting what an image means.
+
+## RPC configuration
+
+The server tries `SOLANA_RPC_URLS`, then `SOLANA_RPC_URL`, then public Solana mainnet endpoints. You do not need a key for normal use.
+
+| Variable | Required | Meaning |
+| --- | --- | --- |
+| `SOLANA_RPC_URLS` | no | Comma-separated ordered JSON-RPC failover endpoints. |
+| `SOLANA_RPC_URL` | no | One primary JSON-RPC endpoint. |
+
+## Development
+
+```bash
+npm test --prefix packages/solana-memo-media-mcp
+npx -y @modelcontextprotocol/inspector node packages/solana-memo-media-mcp/src/index.js
+```
+
+License: Apache-2.0.
diff --git a/packages/solana-memo-media-mcp/package.json b/packages/solana-memo-media-mcp/package.json
new file mode 100644
index 000000000..d227fae35
--- /dev/null
+++ b/packages/solana-memo-media-mcp/package.json
@@ -0,0 +1,21 @@
+{
+ "name": "@three-ws/solana-memo-media-mcp",
+ "version": "0.1.0",
+ "mcpName": "io.github.nirholas/solana-memo-media-mcp",
+ "description": "Extract, validate, and display image data URIs embedded in Solana SPL Memo instructions. Read-only, local decoding, no key required.",
+ "type": "module",
+ "author": "nirholas <[email protected]>",
+ "license": "Apache-2.0",
+ "homepage": "https://three.ws",
+ "repository": { "type": "git", "url": "git+https://github.com/nirholas/three.ws.git", "directory": "packages/solana-memo-media-mcp" },
+ "bugs": { "url": "https://github.com/nirholas/three.ws/issues" },
+ "keywords": ["mcp", "three.ws", "solana", "spl-memo", "data-uri", "onchain-media"],
+ "publishConfig": { "access": "public" },
+ "files": ["src", "server.json", "smithery.yaml", "README.md", "LICENSE"],
+ "bin": { "solana-memo-media-mcp": "src/index.js" },
+ "main": "./src/index.js",
+ "exports": { ".": "./src/index.js" },
+ "engines": { "node": ">=20" },
+ "scripts": { "start": "node src/index.js", "test": "node --test \"test/**/*.test.mjs\"", "inspect": "npx -y @modelcontextprotocol/inspector node src/index.js" },
+ "dependencies": { "@modelcontextprotocol/sdk": "^1.29.0", "zod": "^3.23.8" }
+}
diff --git a/packages/solana-memo-media-mcp/server.json b/packages/solana-memo-media-mcp/server.json
new file mode 100644
index 000000000..506ae4f80
--- /dev/null
+++ b/packages/solana-memo-media-mcp/server.json
@@ -0,0 +1,10 @@
+{
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
+ "name": "io.github.nirholas/solana-memo-media-mcp",
+ "title": "three.ws Solana Memo Media",
+ "description": "Extract validated image data URIs from Solana SPL Memos and return them inline to MCP clients.",
+ "websiteUrl": "https://three.ws",
+ "repository": { "url": "https://github.com/nirholas/three.ws", "source": "github", "subfolder": "packages/solana-memo-media-mcp" },
+ "version": "0.1.0",
+ "packages": [{ "registryType": "npm", "identifier": "@three-ws/solana-memo-media-mcp", "version": "0.1.0", "runtimeHint": "npx", "transport": { "type": "stdio" }, "environmentVariables": [{ "name": "SOLANA_RPC_URLS", "description": "Optional comma-separated Solana JSON-RPC failover endpoints. Public mainnet endpoints are used when omitted.", "format": "string", "isRequired": false }, { "name": "SOLANA_RPC_URL", "description": "Optional primary Solana JSON-RPC endpoint.", "format": "string", "isRequired": false }] }]
+}
diff --git a/packages/solana-memo-media-mcp/smithery.yaml b/packages/solana-memo-media-mcp/smithery.yaml
new file mode 100644
index 000000000..dda7b09b6
--- /dev/null
+++ b/packages/solana-memo-media-mcp/smithery.yaml
@@ -0,0 +1,8 @@
+startCommand:
+ type: stdio
+ configSchema:
+ type: object
+ properties: {}
+ required: []
+ commandFunction: |
+ (config) => ({ command: "npx", args: ["-y", "@three-ws/solana-memo-media-mcp"], env: {} })
diff --git a/packages/solana-memo-media-mcp/src/index.js b/packages/solana-memo-media-mcp/src/index.js
new file mode 100644
index 000000000..2eb5f5db9
--- /dev/null
+++ b/packages/solana-memo-media-mcp/src/index.js
@@ -0,0 +1,59 @@
+#!/usr/bin/env node
+import { realpathSync } from 'node:fs';
+import { createRequire } from 'node:module';
+import { pathToFileURL } from 'node:url';
+import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
+import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
+import { def as decodeDataUri } from './tools/decode-data-uri.js';
+import { def as extractTransaction } from './tools/extract-transaction.js';
+import { def as findAddressMedia } from './tools/find-address-media.js';
+import { def as status } from './tools/status.js';
+
+const require = createRequire(import.meta.url);
+const { version: PKG_VERSION } = require('../package.json');
+export const TOOLS = [decodeDataUri, extractTransaction, findAddressMedia, status];
+
+function responseFor(result) {
+ const images = [];
+ function publicValue(value) {
+ if (Array.isArray(value)) return value.map(publicValue);
+ if (!value || typeof value !== 'object') return value;
+ if (value.media?.base64 && value.metadata) {
+ images.push({ type: 'image', data: value.media.base64, mimeType: value.media.mimeType });
+ return value.metadata;
+ }
+ const out = {};
+ for (const [key, item] of Object.entries(value)) {
+ if (key !== 'media' && key !== 'bytes') out[key] = publicValue(item);
+ }
+ return out;
+ }
+ const structured = publicValue(result);
+ return { content: [{ type: 'text', text: JSON.stringify({ ok: true, ...structured }, null, 2) }, ...images], structuredContent: { ok: true, ...structured } };
+}
+
+export function buildServer() {
+ const server = new McpServer(
+ { name: 'solana-memo-media-mcp', title: 'three.ws Solana Memo Media', version: PKG_VERSION },
+ { capabilities: { tools: {} }, instructions: 'Extract supported image data URIs from Solana SPL Memo instructions without copy-pasting into a converter. Every tool is read-only. Data URIs are decoded locally, limited to 256 KiB, restricted to PNG, JPEG, WebP, or GIF, and checked against their file signature before bytes are returned as MCP image content. An embedded image proves only that its bytes appeared in the specified transaction. Verify signer, signature, and context independently.' },
+ );
+ for (const tool of TOOLS) {
+ server.registerTool(tool.name, { title: tool.title, description: tool.description, inputSchema: tool.inputSchema, annotations: tool.annotations }, async (args) => {
+ try { return responseFor(await tool.handler(args)); }
+ catch (error) { return { content: [{ type: 'text', text: JSON.stringify({ ok: false, error: error?.code || 'unhandled', message: error?.message || String(error) }, null, 2) }], isError: true }; }
+ });
+ }
+ return server;
+}
+
+async function main() {
+ const server = buildServer();
+ await server.connect(new StdioServerTransport());
+ console.error(`[solana-memo-media-mcp@${PKG_VERSION}] connected over stdio with ${TOOLS.length} tools`);
+}
+
+function isProcessEntryPoint() {
+ if (!process.argv[1]) return false;
+ try { return import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href; } catch { return false; }
+}
+if (isProcessEntryPoint()) main().catch((error) => { console.error('[solana-memo-media-mcp] fatal:', error); process.exit(1); });
diff --git a/packages/solana-memo-media-mcp/src/lib/media.js b/packages/solana-memo-media-mcp/src/lib/media.js
new file mode 100644
index 000000000..888a0a858
--- /dev/null
+++ b/packages/solana-memo-media-mcp/src/lib/media.js
@@ -0,0 +1,89 @@
+import { createHash } from 'node:crypto';
+
+export const ALLOWED_MEDIA_TYPES = new Set(['image/png', 'image/jpeg', 'image/webp', 'image/gif']);
+export const MAX_MEDIA_BYTES = 262_144;
+const DATA_URI = /^data:([^;,]+);base64,([A-Za-z0-9+/]*={0,2})$/i;
+
+function bad(message, code = 'invalid_data_uri') {
+ const error = new Error(message);
+ error.code = code;
+ return error;
+}
+
+function assertCanonicalBase64(value) {
+ if (!value || value.length % 4 !== 0 || !/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(value)) {
+ throw bad('The data URI must contain padded, canonical base64.');
+ }
+}
+
+function pngDimensions(bytes) {
+ if (bytes.length < 24) return null;
+ return { width: bytes.readUInt32BE(16), height: bytes.readUInt32BE(20) };
+}
+
+function gifDimensions(bytes) {
+ if (bytes.length < 10) return null;
+ return { width: bytes.readUInt16LE(6), height: bytes.readUInt16LE(8) };
+}
+
+function jpegDimensions(bytes) {
+ let offset = 2;
+ while (offset + 9 < bytes.length) {
+ if (bytes[offset] !== 0xff) return null;
+ const marker = bytes[offset + 1];
+ offset += 2;
+ if (marker === 0xd8 || marker === 0xd9 || (marker >= 0xd0 && marker <= 0xd7)) continue;
+ const length = bytes.readUInt16BE(offset);
+ if (length < 2 || offset + length > bytes.length) return null;
+ if ((marker >= 0xc0 && marker <= 0xc3) || (marker >= 0xc5 && marker <= 0xc7) || (marker >= 0xc9 && marker <= 0xcb) || (marker >= 0xcd && marker <= 0xcf)) {
+ return { height: bytes.readUInt16BE(offset + 3), width: bytes.readUInt16BE(offset + 5) };
+ }
+ offset += length;
+ }
+ return null;
+}
+
+function inspectMagic(type, bytes) {
+ if (type === 'image/png') {
+ if (!bytes.subarray(0, 8).equals(Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]))) throw bad('Bytes do not have a PNG signature.', 'media_signature_mismatch');
+ return pngDimensions(bytes);
+ }
+ if (type === 'image/jpeg') {
+ if (bytes[0] !== 0xff || bytes[1] !== 0xd8 || bytes[2] !== 0xff) throw bad('Bytes do not have a JPEG signature.', 'media_signature_mismatch');
+ return jpegDimensions(bytes);
+ }
+ if (type === 'image/gif') {
+ if (!['GIF87a', 'GIF89a'].includes(bytes.subarray(0, 6).toString('ascii'))) throw bad('Bytes do not have a GIF signature.', 'media_signature_mismatch');
+ return gifDimensions(bytes);
+ }
+ if (type === 'image/webp') {
+ if (bytes.subarray(0, 4).toString('ascii') !== 'RIFF' || bytes.subarray(8, 12).toString('ascii') !== 'WEBP') throw bad('Bytes do not have a WebP signature.', 'media_signature_mismatch');
+ return null;
+ }
+ return null;
+}
+
+export function decodeDataUri(dataUri, { maxBytes = MAX_MEDIA_BYTES } = {}) {
+ if (typeof dataUri !== 'string') throw bad('dataUri must be a string.');
+ const match = DATA_URI.exec(dataUri.trim());
+ if (!match) throw bad('Expected a base64 data URI such as data:image/png;base64,...');
+ const mimeType = match[1].toLowerCase();
+ if (!ALLOWED_MEDIA_TYPES.has(mimeType)) throw bad(`Unsupported media type: ${mimeType}.`, 'unsupported_media_type');
+ assertCanonicalBase64(match[2]);
+ const expectedBytes = (match[2].length / 4) * 3 - (match[2].endsWith('==') ? 2 : match[2].endsWith('=') ? 1 : 0);
+ if (expectedBytes > maxBytes) throw bad(`Decoded media exceeds the ${maxBytes}-byte limit.`, 'media_too_large');
+ const bytes = Buffer.from(match[2], 'base64');
+ const dimensions = inspectMagic(mimeType, bytes);
+ return {
+ mimeType,
+ base64: match[2],
+ bytes,
+ byteLength: bytes.length,
+ sha256: createHash('sha256').update(bytes).digest('hex'),
+ dimensions,
+ };
+}
+
+export function mediaMetadata(media, extra = {}) {
+ return { mime_type: media.mimeType, byte_length: media.byteLength, sha256: media.sha256, dimensions: media.dimensions, ...extra };
+}
diff --git a/packages/solana-memo-media-mcp/src/lib/memos.js b/packages/solana-memo-media-mcp/src/lib/memos.js
new file mode 100644
index 000000000..c2c5cec2c
--- /dev/null
+++ b/packages/solana-memo-media-mcp/src/lib/memos.js
@@ -0,0 +1,24 @@
+const MEMO_PROGRAMS = new Set(['MemoSq4gqABAXKb96qnH8TysNcV4F6n7jKx9jABZx1s', 'Memo1UhkJRfHyvLMcVLMbLJYfW2tfU8G8H4PqvV6v8']);
+
+function isMemo(instruction) {
+ return MEMO_PROGRAMS.has(instruction?.programId) || /memo/i.test(String(instruction?.program || '')) || /memo/i.test(String(instruction?.programId || ''));
+}
+
+function textFrom(instruction) {
+ if (typeof instruction?.parsed === 'string') return instruction.parsed;
+ if (typeof instruction?.data === 'string' && instruction.data.startsWith('data:')) return instruction.data;
+ return null;
+}
+
+export function memoPayloads(transaction) {
+ const groups = [transaction?.transaction?.message?.instructions || [], ...(transaction?.meta?.innerInstructions || []).map((item) => item.instructions || [])];
+ const output = [];
+ for (const instructions of groups) {
+ for (const instruction of instructions) {
+ if (!isMemo(instruction)) continue;
+ const payload = textFrom(instruction);
+ if (payload) output.push(payload);
+ }
+ }
+ return [...new Set(output)];
+}
diff --git a/packages/solana-memo-media-mcp/src/lib/rpc.js b/packages/solana-memo-media-mcp/src/lib/rpc.js
new file mode 100644
index 000000000..6764e6236
--- /dev/null
+++ b/packages/solana-memo-media-mcp/src/lib/rpc.js
@@ -0,0 +1,34 @@
+const DEFAULT_RPC_URLS = ['https://api.mainnet-beta.solana.com', 'https://solana-rpc.publicnode.com', 'https://rpc.ankr.com/solana'];
+
+export function getRpcUrls() {
+ const supplied = [...(process.env.SOLANA_RPC_URLS || '').split(','), process.env.SOLANA_RPC_URL || ''].map((url) => url.trim()).filter(Boolean);
+ return [...new Set([...supplied, ...DEFAULT_RPC_URLS])];
+}
+
+export async function rpc(method, params) {
+ let lastError;
+ for (const url of getRpcUrls()) {
+ try {
+ const response = await fetch(url, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ jsonrpc: '2.0', id: 1, method, params }), signal: AbortSignal.timeout(12_000) });
+ if (!response.ok) throw new Error(`Solana RPC ${response.status} from ${new URL(url).host}`);
+ const body = await response.json();
+ if (body.error) throw new Error(body.error.message || 'Solana RPC returned an error');
+ return body.result;
+ } catch (error) { lastError = error; }
+ }
+ throw lastError || new Error('All Solana RPC endpoints failed.');
+}
+
+export function assertBase58(value, label) {
+ const text = typeof value === 'string' ? value.trim() : '';
+ if (!/^[1-9A-HJ-NP-Za-km-z]{32,128}$/.test(text)) {
+ const error = new Error(`${label} must be a base58 Solana identifier.`);
+ error.code = 'invalid_solana_identifier';
+ throw error;
+ }
+ return text;
+}
+
+export async function getParsedTransaction(signature) {
+ return rpc('getTransaction', [signature, { encoding: 'jsonParsed', commitment: 'confirmed', maxSupportedTransactionVersion: 1 }]);
+}
diff --git a/packages/solana-memo-media-mcp/src/tools/decode-data-uri.js b/packages/solana-memo-media-mcp/src/tools/decode-data-uri.js
new file mode 100644
index 000000000..b1b067b37
--- /dev/null
+++ b/packages/solana-memo-media-mcp/src/tools/decode-data-uri.js
@@ -0,0 +1,14 @@
+import { z } from 'zod';
+import { decodeDataUri, mediaMetadata } from '../lib/media.js';
+
+export const def = {
+ name: 'decode_solana_memo_data_uri',
+ title: 'Decode a Solana memo data URI',
+ annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false },
+ description: 'Decode and validate one base64 image data URI from a Solana memo. Only PNG, JPEG, WebP, and GIF are accepted. The bytes stay local to the MCP process, are checked against their claimed file signature, and return inline as an MCP image with byte length, SHA-256, and dimensions when available.',
+ inputSchema: { dataUri: z.string().min(1).max(400_000).describe('A complete base64 image data URI from an SPL Memo instruction.') },
+ async handler(args) {
+ const media = decodeDataUri(args.dataUri);
+ return { media, metadata: mediaMetadata(media) };
+ },
+};
diff --git a/packages/solana-memo-media-mcp/src/tools/extract-transaction.js b/packages/solana-memo-media-mcp/src/tools/extract-transaction.js
new file mode 100644
index 000000000..724506c19
--- /dev/null
+++ b/packages/solana-memo-media-mcp/src/tools/extract-transaction.js
@@ -0,0 +1,30 @@
+import { z } from 'zod';
+import { decodeDataUri, mediaMetadata } from '../lib/media.js';
+import { memoPayloads } from '../lib/memos.js';
+import { assertBase58, getParsedTransaction } from '../lib/rpc.js';
+
+export const def = {
+ name: 'extract_solana_memo_media',
+ title: 'Extract media from a Solana transaction memo',
+ annotations: { readOnlyHint: true, idempotentHint: false, openWorldHint: true },
+ description: 'Fetch a finalized Solana transaction, inspect top-level and inner SPL Memo instructions, and render every supported embedded image data URI inline. The response always identifies the source signature and reports rejected media without returning unsafe bytes. This is chain data, not a claim of authorship or safety.',
+ inputSchema: { signature: z.string().trim().min(32).max(128).describe('Finalized Solana transaction signature in base58.') },
+ async handler(args) {
+ const signature = assertBase58(args.signature, 'signature');
+ const transaction = await getParsedTransaction(signature);
+ if (!transaction) {
+ const error = new Error('Transaction was not found or is not available from the configured RPC endpoints.');
+ error.code = 'transaction_not_found';
+ throw error;
+ }
+ const payloads = memoPayloads(transaction);
+ const assets = [];
+ const rejected = [];
+ for (const payload of payloads) {
+ if (!payload.startsWith('data:')) continue;
+ try { const media = decodeDataUri(payload); assets.push({ media, metadata: mediaMetadata(media, { source: 'spl_memo' }) }); }
+ catch (error) { rejected.push({ code: error.code || 'invalid_data_uri', message: error.message }); }
+ }
+ return { signature, slot: transaction.slot ?? null, block_time: transaction.blockTime ?? null, memo_count: payloads.length, assets, rejected };
+ },
+};
diff --git a/packages/solana-memo-media-mcp/src/tools/find-address-media.js b/packages/solana-memo-media-mcp/src/tools/find-address-media.js
new file mode 100644
index 000000000..ebe6bc9fa
--- /dev/null
+++ b/packages/solana-memo-media-mcp/src/tools/find-address-media.js
@@ -0,0 +1,26 @@
+import { z } from 'zod';
+import { extractFromSignature } from './shared.js';
+import { assertBase58, rpc } from '../lib/rpc.js';
+
+export const def = {
+ name: 'find_solana_memo_media',
+ title: 'Find recent memo media for a Solana address',
+ annotations: { readOnlyHint: true, idempotentHint: false, openWorldHint: true },
+ description: 'Search a public Solana address’s recent finalized transactions and return only validated image data URIs carried by SPL Memo instructions. It is intentionally bounded to limit RPC load. Use the returned signatures to verify provenance in an explorer.',
+ inputSchema: { address: z.string().trim().min(32).max(64).describe('Solana wallet, token account, or program address in base58.'), limit: z.number().int().min(1).max(20).default(10).describe('Recent finalized signatures to inspect, from 1 to 20 (default 10).') },
+ async handler(args) {
+ const address = assertBase58(args.address, 'address');
+ const limit = args.limit ?? 10;
+ const signatures = await rpc('getSignaturesForAddress', [address, { limit, commitment: 'finalized' }]);
+ const matches = [];
+ const failures = [];
+ for (const item of signatures || []) {
+ if (!item?.signature || item.err) continue;
+ try {
+ const result = await extractFromSignature(item.signature);
+ if (result.assets.length) matches.push(result);
+ } catch (error) { failures.push({ signature: item.signature, code: error.code || 'rpc_error', message: error.message }); }
+ }
+ return { address, inspected: (signatures || []).length, match_count: matches.length, matches, failures };
+ },
+};
diff --git a/packages/solana-memo-media-mcp/src/tools/shared.js b/packages/solana-memo-media-mcp/src/tools/shared.js
new file mode 100644
index 000000000..8e25a294c
--- /dev/null
+++ b/packages/solana-memo-media-mcp/src/tools/shared.js
@@ -0,0 +1,17 @@
+import { decodeDataUri, mediaMetadata } from '../lib/media.js';
+import { memoPayloads } from '../lib/memos.js';
+import { assertBase58, getParsedTransaction } from '../lib/rpc.js';
+
+export async function extractFromSignature(value) {
+ const signature = assertBase58(value, 'signature');
+ const transaction = await getParsedTransaction(signature);
+ if (!transaction) { const error = new Error('Transaction was not found.'); error.code = 'transaction_not_found'; throw error; }
+ const assets = [];
+ const rejected = [];
+ for (const payload of memoPayloads(transaction)) {
+ if (!payload.startsWith('data:')) continue;
+ try { const media = decodeDataUri(payload); assets.push({ media, metadata: mediaMetadata(media, { source: 'spl_memo' }) }); }
+ catch (error) { rejected.push({ code: error.code || 'invalid_data_uri', message: error.message }); }
+ }
+ return { signature, slot: transaction.slot ?? null, block_time: transaction.blockTime ?? null, assets, rejected };
+}
diff --git a/packages/solana-memo-media-mcp/src/tools/status.js b/packages/solana-memo-media-mcp/src/tools/status.js
new file mode 100644
index 000000000..06cc9b117
--- /dev/null
+++ b/packages/solana-memo-media-mcp/src/tools/status.js
@@ -0,0 +1,10 @@
+import { getRpcUrls } from '../lib/rpc.js';
+
+export const def = {
+ name: 'get_solana_memo_media_status',
+ title: 'Solana memo media capability',
+ annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false },
+ description: 'Report the local decoding policy and ordered Solana RPC failover hosts. No network call is made and no data is stored.',
+ inputSchema: {},
+ async handler() { return { ok: true, accepted_mime_types: ['image/png', 'image/jpeg', 'image/webp', 'image/gif'], max_decoded_bytes: 262144, rpc_hosts: getRpcUrls().map((url) => new URL(url).host), local_decoding: true, writes: false }; },
+};
diff --git a/packages/solana-memo-media-mcp/test/media.test.mjs b/packages/solana-memo-media-mcp/test/media.test.mjs
new file mode 100644
index 000000000..f5ee95b86
--- /dev/null
+++ b/packages/solana-memo-media-mcp/test/media.test.mjs
@@ -0,0 +1,31 @@
+import assert from 'node:assert/strict';
+import { test } from 'node:test';
+import { decodeDataUri } from '../src/lib/media.js';
+import { TOOLS, buildServer } from '../src/index.js';
+
+const PNG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAFgwJ/lwV8YQAAAABJRU5ErkJggg==';
+
+test('decodes a signed PNG data URI and reports immutable metadata', () => {
+ const media = decodeDataUri(PNG);
+ assert.equal(media.mimeType, 'image/png');
+ assert.equal(media.byteLength, 70);
+ assert.deepEqual(media.dimensions, { width: 1, height: 1 });
+ assert.equal(media.sha256.length, 64);
+});
+
+test('rejects unsupported and mismatched media before it can reach a client', () => {
+ assert.throws(() => decodeDataUri('data:image/svg+xml;base64,PHN2Zy8+'), /Unsupported/);
+ assert.throws(() => decodeDataUri('data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=='), /PNG signature/);
+ assert.throws(() => decodeDataUri('data:image/png;base64,AAAA'), /PNG signature/);
+});
+
+test('the complete read-only surface is registered without a signer', () => {
+ assert.deepEqual(TOOLS.map((tool) => tool.name), ['decode_solana_memo_data_uri', 'extract_solana_memo_media', 'find_solana_memo_media', 'get_solana_memo_media_status']);
+ for (const tool of TOOLS) {
+ assert.equal(tool.annotations.readOnlyHint, true);
+ assert.equal(typeof tool.annotations.idempotentHint, 'boolean');
+ assert.equal(typeof tool.annotations.openWorldHint, 'boolean');
+ }
+ const server = buildServer();
+ for (const tool of TOOLS) assert.ok(server._registeredTools[tool.name]);
+});
diff --git a/public/mcp-catalog.json b/public/mcp-catalog.json
index f599c89d0..60ee6379b 100644
--- a/public/mcp-catalog.json
+++ b/public/mcp-catalog.json
@@ -2,15 +2,15 @@
"$comment": "Generated by scripts/build-mcp-catalog.mjs from the tool definitions and price maps in this repo. Do not edit by hand: npm run build:mcp-catalog regenerates it and npm run audit:mcp-catalog fails the build when it is stale.",
"docs": "https://three.ws/docs/mcp-safety",
"counts": {
- "tools": 317,
- "servers": 41,
- "free": 289,
+ "tools": 321,
+ "servers": 42,
+ "free": 293,
"paid": 28,
- "read": 211,
+ "read": 215,
"write": 81,
"irreversible": 25,
- "withSchema": 317,
- "withArguments": 292
+ "withSchema": 321,
+ "withArguments": 295
},
"servers": [
{
@@ -253,6 +253,14 @@
"auth": "api-key",
"tools": 5
},
+ {
+ "id": "solana-memo-media-mcp",
+ "title": "@three-ws/solana-memo-media-mcp",
+ "endpoint": "npx -y @three-ws/solana-memo-media-mcp",
+ "transport": "stdio",
+ "auth": "none",
+ "tools": 4
+ },
{
"id": "three-token-mcp",
"title": "@three-ws/three-token-mcp",
@@ -9597,6 +9605,158 @@
},
"source": "packages/signals-mcp/src/tools/subscribe-signal.js"
},
+ {
+ "name": "decode_solana_memo_data_uri",
+ "title": "Decode a Solana memo data URI",
+ "description": "Decode and validate one base64 image data URI from a Solana memo. Only PNG, JPEG, WebP, and GIF are accepted. The bytes stay local to the MCP process, are checked against their claimed file signature, and return inline as an MCP image with byte length, SHA-256, and dimensions when available.",
+ "server": {
+ "id": "solana-memo-media-mcp",
+ "title": "@three-ws/solana-memo-media-mcp",
+ "endpoint": "npx -y @three-ws/solana-memo-media-mcp",
+ "transport": "stdio",
+ "auth": "none"
+ },
+ "safety": "read",
+ "annotations": {
+ "readOnlyHint": true,
+ "destructiveHint": null,
+ "idempotentHint": true,
+ "openWorldHint": false
+ },
+ "price": {
+ "usd": 0,
+ "free": true
+ },
+ "inputSchema": {
+ "type": "object",
+ "properties": {
+ "dataUri": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 400000,
+ "description": "A complete base64 image data URI from an SPL Memo instruction."
+ }
+ },
+ "required": [
+ "dataUri"
+ ],
+ "additionalProperties": false
+ },
+ "source": "packages/solana-memo-media-mcp/src/tools/decode-data-uri.js"
+ },
+ {
+ "name": "extract_solana_memo_media",
+ "title": "Extract media from a Solana transaction memo",
+ "description": "Fetch a finalized Solana transaction, inspect top-level and inner SPL Memo instructions, and render every supported embedded image data URI inline. The response always identifies the source signature and reports rejected media without returning unsafe bytes. This is chain data, not a claim of authorship or safety.",
+ "server": {
+ "id": "solana-memo-media-mcp",
+ "title": "@three-ws/solana-memo-media-mcp",
+ "endpoint": "npx -y @three-ws/solana-memo-media-mcp",
+ "transport": "stdio",
+ "auth": "none"
+ },
+ "safety": "read",
+ "annotations": {
+ "readOnlyHint": true,
+ "destructiveHint": null,
+ "idempotentHint": false,
+ "openWorldHint": true
+ },
+ "price": {
+ "usd": 0,
+ "free": true
+ },
+ "inputSchema": {
+ "type": "object",
+ "properties": {
+ "signature": {
+ "type": "string",
+ "minLength": 32,
+ "maxLength": 128,
+ "description": "Finalized Solana transaction signature in base58."
+ }
+ },
+ "required": [
+ "signature"
+ ],
+ "additionalProperties": false
+ },
+ "source": "packages/solana-memo-media-mcp/src/tools/extract-transaction.js"
+ },
+ {
+ "name": "find_solana_memo_media",
+ "title": "Find recent memo media for a Solana address",
+ "description": "Search a public Solana address’s recent finalized transactions and return only validated image data URIs carried by SPL Memo instructions. It is intentionally bounded to limit RPC load. Use the returned signatures to verify provenance in an explorer.",
+ "server": {
+ "id": "solana-memo-media-mcp",
+ "title": "@three-ws/solana-memo-media-mcp",
+ "endpoint": "npx -y @three-ws/solana-memo-media-mcp",
+ "transport": "stdio",
+ "auth": "none"
+ },
+ "safety": "read",
+ "annotations": {
+ "readOnlyHint": true,
+ "destructiveHint": null,
+ "idempotentHint": false,
+ "openWorldHint": true
+ },
+ "price": {
+ "usd": 0,
+ "free": true
+ },
+ "inputSchema": {
+ "type": "object",
+ "properties": {
+ "address": {
+ "type": "string",
+ "minLength": 32,
+ "maxLength": 64,
+ "description": "Solana wallet, token account, or program address in base58."
+ },
+ "limit": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 20,
+ "default": 10,
+ "description": "Recent finalized signatures to inspect, from 1 to 20 (default 10)."
+ }
+ },
+ "required": [
+ "address"
+ ],
+ "additionalProperties": false
+ },
+ "source": "packages/solana-memo-media-mcp/src/tools/find-address-media.js"
+ },
+ {
+ "name": "get_solana_memo_media_status",
+ "title": "Solana memo media capability",
+ "description": "Report the local decoding policy and ordered Solana RPC failover hosts. No network call is made and no data is stored.",
+ "server": {
+ "id": "solana-memo-media-mcp",
+ "title": "@three-ws/solana-memo-media-mcp",
+ "endpoint": "npx -y @three-ws/solana-memo-media-mcp",
+ "transport": "stdio",
+ "auth": "none"
+ },
+ "safety": "read",
+ "annotations": {
+ "readOnlyHint": true,
+ "destructiveHint": null,
+ "idempotentHint": true,
+ "openWorldHint": false
+ },
+ "price": {
+ "usd": 0,
+ "free": true
+ },
+ "inputSchema": {
+ "type": "object",
+ "properties": {}
+ },
+ "source": "packages/solana-memo-media-mcp/src/tools/status.js"
+ },
{
"name": "three_balance",
"title": "Read a wallet's $THREE + SOL balance",
diff --git a/scripts/build-mcp-catalog.mjs b/scripts/build-mcp-catalog.mjs
index fb3f0f306..ef2a2ff6f 100644
--- a/scripts/build-mcp-catalog.mjs
+++ b/scripts/build-mcp-catalog.mjs
@@ -121,6 +121,14 @@ const HOSTED_SERVERS = [
transport: 'stdio',
auth: 'api-key',
},
+ {
+ match: (f) => f.startsWith('packages/solana-memo-media-mcp/src/tools/'),
+ id: 'solana-memo-media-mcp',
+ title: '@three-ws/solana-memo-media-mcp',
+ endpoint: 'npx -y @three-ws/solana-memo-media-mcp',
+ transport: 'stdio',
+ auth: 'none',
+ },
];
/** Resolve a tool-definition file to the server that publishes it. */
diff --git a/scripts/publish-mcp-servers.mjs b/scripts/publish-mcp-servers.mjs
index 09a807fb7..812c8c7df 100644
--- a/scripts/publish-mcp-servers.mjs
+++ b/scripts/publish-mcp-servers.mjs
@@ -103,6 +103,7 @@ const SERVERS = [
{ key: 'activity-mcp', dir: 'packages/activity-mcp', manifest: 'packages/activity-mcp/server.json' },
{ key: 'agenc-mcp', dir: 'packages/agenc-mcp', manifest: 'packages/agenc-mcp/server.json' },
{ key: 'vision-mcp', dir: 'packages/vision-mcp', manifest: 'packages/vision-mcp/server.json' },
+ { key: 'solana-memo-media-mcp', dir: 'packages/solana-memo-media-mcp', manifest: 'packages/solana-memo-media-mcp/server.json' },
{ key: 'brain-mcp', dir: 'packages/brain-mcp', manifest: 'packages/brain-mcp/server.json' },
{ key: 'audio-mcp', dir: 'packages/audio-mcp', manifest: 'packages/audio-mcp/server.json' },
{ key: 'kol-mcp', dir: 'packages/kol-mcp', manifest: 'packages/kol-mcp/server.json' },