AllSwap MCP Server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@allswapio/mcp-server
A read-only Model Context Protocol (MCP) server for AllSwap. It speaks JSON-RPC 2.0 over stdio and offers three tools:
Tool | What it does | Network |
| Fetches AllSwap's public asset catalog ( | HTTPS GET |
| Returns AllSwap's official website and documentation links, contact email, social accounts, Chrome extension ID, company registration details and its statement that it issues no token. | None |
| Returns a block-explorer URL for a transaction hash on a supported mainnet network. Only the hash format is checked, not whether the transaction exists. | None |
It cannot create orders, quote prices, move funds or sign anything, and it takes no API keys, wallet keys
or credentials. All three tools carry the annotation readOnlyHint: true; only list_supported_assets has
openWorldHint: true. No runtime dependencies; Node.js 22 or later.
Use with an MCP client
{
"mcpServers": {
"allswap": {
"command": "npx",
"args": ["-y", "@allswapio/mcp-server"]
}
}
}The command installed by the package is allswap-mcp. The environment variable ALLSWAP_API_ORIGIN
changes the origin used by list_supported_assets (default https://allswap.io). It must be an http: or
https: origin with no path, query or credentials (for example https://allswap.io); otherwise the command
prints one line to stderr and exits with code 2 before reading any input.
To try it by hand, send one JSON-RPC message per line on stdin:
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18"}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_tx_explorer_url","arguments":{"network":"btc","txHash":"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"}}}' \
| npx -y @allswapio/mcp-serverThe second reply contains
"explorerUrl": "https://mempool.space/tx/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b".
Related MCP server: blockscout-mcp-server
Tools
list_supported_assets
Argument | Type | Description |
| string | Optional. Exact symbol match, case-insensitive ( |
| string | Optional. Case-insensitive substring of the asset's |
| boolean | Optional. |
| integer | Optional, 1-200, default 25. A value outside that range uses the default. |
Returns { observedAt, stale, totalAssets, matchedAssets, returnedAssets }, where returnedAssets holds
the catalog entries as the API returns them. A non-200 response, a redirect (redirects are not followed),
a response body over 5 MiB, a network error or a timeout (8 s) returns { error } with isError: true.
get_official_channels
No arguments. Returns a fixed object: website, documentation, OpenAPI and verification page links, support
and security contact (service@allswap.io), Telegram and X accounts, Chrome Web Store extension ID and
link, operating company (Haohang Network Technology Co., Limited), Hong Kong Business Registration No.,
D-U-N-S number, registered address, compliance page, and the statement that AllSwap issues no token,
presale or airdrop.
get_tx_explorer_url
Argument | Type | Description |
| string | Network key, case-insensitive (see below). |
| string | Transaction hash. |
Returns { network, txHash, explorerUrl, valid }; network and txHash are echoed only when they are
strings (otherwise null). For an unknown network, a hash in the wrong format or a non-string argument,
explorerUrl is null and valid is false.
The eip155:<id> and bip122:<hash> keys and solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp are CAIP-2 chain ids.
The keys tron:mainnet, ton:mainnet, ripple:0 and near:mainnet are aliases: the chain ids AllSwap's
public asset API (GET /api/v2/assets) uses for those chains. stellar:public, sui:mainnet and
aptos:mainnet are plain aliases. For Zcash, bip122:00040fe8ec8471911baa1db1266ea15d is the genesis-hash
CAIP-2 id and bip122:0007104ccda289427919efc39dc9e4d4 is the chain id that AllSwap's public asset API
(GET /api/v2/assets) returns for Zcash.
Network keys | Hash format | Explorer |
|
| etherscan.io |
|
| arbiscan.io |
|
| basescan.org |
|
| bscscan.com |
|
| optimistic.etherscan.io |
|
| polygonscan.com |
|
| snowtrace.io |
| 64 hex | mempool.space |
| 64 hex | litecoinspace.org |
| 64 hex | blockchair.com |
| 64 hex | blockchair.com |
| 64 hex | blockchair.com |
| 64 hex | tronscan.org |
| Base58, 32-96 chars | solscan.io |
| 64 hex (Base64 hashes are not linked) | tonscan.org |
| 64 hex | xrpscan.com |
| 64 hex | stellar.expert |
| Base58, 32-96 chars | nearblocks.io |
| Base58, 32-96 chars | suiscan.xyz |
|
| explorer.aptoslabs.com |
Protocol details
Supported protocol revisions:
2025-11-25,2025-06-18,2025-03-26and2024-11-05. The server implements theinitialize-based revisions only and does not implement revision2026-07-28.initializeanswers with the client'sprotocolVersionwhen it is one of the supported revisions, with2025-11-25when the client asks for any other revision, and with2024-11-05when the client sends none. The only capability istools.Methods:
initialize,ping,tools/list,tools/call. Notifications (messages withoutid) get no reply. Any other method returns-32601(includingserver/discover); an unknown tool or a tool name that is not a string returns-32602; a message that is not a JSON-RPC 2.0 request, or whoseidis not a string, a number or null, returns-32600withid: null; a line that is not JSON returns-32700; an unexpected failure while handling or answering a line returns-32603, and the server keeps running.Batches (JSON arrays) are not supported and return
-32600.
Use as a library
import { createMcpHandler, TOOLS } from "@allswapio/mcp-server";
const handle = createMcpHandler(); // options: { apiOrigin, fetchImpl, timeoutMs, maxBytes }
const reply = await handle({
jsonrpc: "2.0",
id: 1,
method: "tools/call",
params: { name: "get_tx_explorer_url", arguments: { network: "eth", txHash: "0x" + "ab".repeat(32) } },
});
console.log(TOOLS.map((tool) => tool.name));
// [ 'list_supported_assets', 'get_official_channels', 'get_tx_explorer_url' ]
console.log(JSON.parse(reply.result.content[0].text).explorerUrl);
// https://etherscan.io/tx/0xabab...ababcreateMcpHandler throws a TypeError when apiOrigin is not an http: or https: origin.
Security
Please report vulnerabilities privately to service@allswap.io. See SECURITY.md.
License inquiries
Questions about the licensing of this software or of anything it contains: service@allswap.io.
License
MIT. Copyright (c) 2026 Haohang Network Technology Co., Limited (AllSwap).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only educational MCP for CryptoDecentral Sovereign. No auth, trading, custody, or advice.
Public read-only MCP server for HODLXXI agent identity, trust, receipts, and verification.
Read-only MCP server for The Quiet Protocol's engines, benchmarks, proof, and business data.
Read-only MCP server checks and quote verification, free and keyless; results signed and publicly lo
Related MCP Servers
- AlicenseAqualityBmaintenanceRead-only MCP server for Blocksize real-time market data: crypto VWAP, bid/ask, FX, metals and tokenized equities, with pricing, coverage and x402 endpoint lookup. Signed-in users of the Claude, ChatGPT and Cursor connectors get 30,000 free live-data credits every month (1 credit = $0.001); subscriptions from EUR 49/month.71MIT
- AlicenseAqualityDmaintenanceA read-only MCP server that queries multichain EVM on-chain data through Blockscout REST API, providing tools for address info, transactions, logs, and more.1613 npmMIT
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server for managing multichain crypto wallet accounts and deriving public addresses across Bitcoin, Ethereum, Solana, TRON, and more. It provides secure local storage with encrypted mnemonics and only exposes account listing and address lookup tools.ISC
- AlicenseAqualityDmaintenanceA read-only MCP server for safely exploring Nostr, enabling agents to resolve identifiers, fetch profiles and events, query notes, and inspect relay metadata. It does not accept private keys or publish events.511 npmMIT