Generates JavaScript code snippets for interacting with blockchain APIs
Required runtime environment for executing the MCP server
Used for package management and quick deployment via npx
Seitrace Insights MCP Server 🚀
A Model Context Protocol (MCP) server that exposes the Seitrace Insights API as model-friendly tools. It now advertises five focused tools that implement a resource-based interface so LLMs can discover resources, list actions, fetch schemas, invoke them, and generate code snippets. Grouped tools (e.g., erc20
, native
) remain available for compatibility but are not listed.
Highlights ✨
What MCP provides to end users and assistants:
- Natural‑language access to Seitrace insights. The assistant performs API calls on your behalf.
- Self‑describing tool flow: enumerate actions, retrieve the input schema, then invoke.
- Input validation and clear error messages using per‑action JSON Schemas.
- Concise discovery: minimal list output; detailed payloads only when invoking actions.
- Integration with MCP‑enabled VS Code extensions (e.g., Continue, Cline).
- Simple, secure API key handling via environment variables (sent as
x-api-key
). - Quick start via npx:
npx -y @seitrace/mcp
.
Use with VSCode variants, Claude Desktop / Cursor 💻
See mcp
Using with an MCP Client 🤝
Configure your MCP client to launch the compiled server binary:
- Command:
node
- Args:
build/index.js
- Env (optional):
SECRET_APIKEY
,API_BASE_URL
Once connected, the client will call tools/list
, which returns exactly five tools representing the resource interface.
Available tools 🧰
Primary entrypoint: five tools that form the resource-based interface:
list_resources
— list available resourceslist_resource_actions
— list actions for a resourceget_resource_action_schema
— get the JSON Schema for an actioninvoke_resource_action
— invoke an action with payloadget_resource_action_snippet
— generate a code snippet to perform a resource action in the specified language, for example, a javascript snippet to call the action with the required parameters
Flow: list resources -> list actions for a resource -> get action schema -> invoke action or generate a code snippet.
Common resources include:
address
— address detail, transactions, and token transfers.erc20
— ERC‑20 token information, balances, transfers, and holders.erc721
— ERC‑721 token information, transfers, and holders.erc1155
— ERC‑1155 token information, instances, and holders.cw20
— CW20 token information, balances, transfers, and holders.cw721
— CW721 token information, transfers, and holders.ics20
— ICS‑20 (IBC fungible) transfer information.native
— native token information and statistics.smart_contract
— smart contract detail.
Typical Flow 🔁
Using the MCP SDK, drive the resource-based flow via the five tools:
The server validates payload
against the action’s schema and returns a pretty-printed JSON body when applicable.
Requirements 🔧
- Node.js 20+
- A Seitrace Insights API key (optional for discovery, required for most live calls), obtain it here
Quick start (npx) ⚡
If you just want to run the server, use the one‑liner:
You can set environment variables such as SECRET_APIKEY
and API_BASE_URL
in your shell or inline.
Install 📦
Configure 🔐
Copy .env.example
to .env
and set your values as needed.
Environment variables:
API_BASE_URL
(optional) — defaults tohttps://seitrace.com/insights
SECRET_APIKEY
— Seitrace API key; used to set headerx-api-key
Build and Run 🏃
This server is designed to be launched by an MCP-compatible client (e.g., via a command/args configuration). It communicates over stdio.
End-to-End Test ✅
Run the E2E to verify the root resource flow and (optionally) a live positive-call:
Troubleshooting 🛠️
- Validation errors: If
invoke_resource_action
returns “Invalid arguments…”, callget_resource_action_schema
and ensure yourpayload
follows the schema. - Unknown action: You’ll get an error that includes the available actions. Use
list_resource_actions
to discover the right name. - 401/403 responses: Set
SECRET_APIKEY
with a valid Seitrace key. - Network issues: Ensure
API_BASE_URL
is reachable from your environment. - Node version: Use Node 20+ as required in
package.json
.
Contributing 🤝
- Keep
tools/list
output compact. Do not embed per-action details there—fetch them viaget_resource_action_schema
. - New endpoints should appear under the correct resource; root tool methods should provide discovery and invocation consistently.
- Prefer small, focused modules in
src/lib/
for shared logic.
License 📄
See LICENSE
Support 📨
Please shoot emails to dev@cavies.xyz
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables natural language access to blockchain data and insights through the Seitrace API. Supports querying address details, token information (ERC-20, ERC-721, ERC-1155, CW20, CW721), transaction data, and smart contract details across multiple blockchain networks.
Related MCP Servers
- AsecurityAlicenseAqualityFacilitates interaction with Ethereum blockchain data via Etherscan's API, providing real-time access to balances, transactions, token transfers, contract ABIs, gas prices, and ENS name resolutions.Last updated -61623TypeScriptMIT License
- AsecurityAlicenseAqualityProvides Ethereum blockchain data tools via Etherscan's API, enabling users to check ETH balances, view transactions, track token transfers, fetch contract ABIs, monitor gas prices, and resolve ENS names.Last updated -6161TypeScriptMIT License
- AsecurityAlicenseAqualityProvides tools for AI assistants to interact with the Ethereum blockchain through standard JSON-RPC methods, enabling queries for account balances, gas prices, and smart contract code.Last updated -38JavaScriptMIT License
- -securityFlicense-qualityA Solana blockchain interaction server that allows AI tools to query blockchain data using natural language, access structured token information, and generate human-readable explanations of complex blockchain concepts.Last updated -9Python