loading…
Search for a command to run...
loading…
Provides AI assistants access to Shape's onchain data including gasback distribution, collections analytics, stack users, and network monitoring.
Provides AI assistants access to Shape's onchain data including gasback distribution, collections analytics, stack users, and network monitoring.
Model Context Protocol (MCP) server for Shape, built with xmcp. This server provides AI assistants access to Shape's onchain data: gasback distribution, collections analytics, stack users & more.
Contributions are welcome! Fork and add your own tools, feel free to submit a PR.
Check our docs about how to build AI on Shape: https://docs.shape.network/building-on-shape/ai
Organized by functionality for easy extension:
/tools/network/)getChainStatusMonitor Shape's network: RPC health, gas prices, block times, etc.
Example prompt: "current shape status? gas prices looking mint-friendly?"
/tools/nft/)getCollectionAnalyticsCollection stats: supply, owners, sample NFTs, floors, etc.
Example prompt: "what's the vibe on collection 0x567...abc? floor price and top holders?"
getShapeNftList NFTs for an address, with metadata.
Example prompt: "what NFTs does 0xabcd...123 hold on shape?"
/tools/gasback/)getShapeCreatorAnalyticsShape builder/creator deep dive: earnings, tokens, withdrawals, etc.
Example prompt: "analyze creator 0xabcd...123's gasback and compare to top earners. any tips?"
getTopShapeCreatorsTop creators by gasback earned & tx.
Example prompt: "who are shape's top 10 gasback earners?"
simulateGasbackRewardsGet gasback rough estimates.
Example prompt: "simulate 50 txs/day at 50k gas—earnings over 3 months? wen lambo?"
/tools/stack/)getStackAchievementsUser medals by tier, total count, etc.
Example prompt: "what's 0xghi...123's stack status? gold medals?"
Want to try the MCP server without local setup? Point directly to our deployed instance:
{
"mcpServers": {
"shape-mcp": {
"url": "https://shape-mcp-server.vercel.app/mcp"
}
}
}
Note: This deployed version is rate limited and is intended for testing/sandbox use only. For production AI applications, we recommend self-hosting your own instance following the setup instructions above.
Copy .env.example to .env and fill in:
ALCHEMY_API_KEY=your_key_here
CHAIN_ID=360 # Mainnet; use 11011 for Sepolia
# Optional caching
REDIS_URL=redis://localhost:6379 # Local, or Upstash for prod
yarn install
yarn dev
Server is now running at http://localhost:3002/mcp
Add to your MCP settings in Cursor for eg:
{
"mcpServers": {
"shape-mcp": {
"url": "http://localhost:3002/mcp"
}
}
}
src/
├── tools/ # Modular tools
│ ├── gasback/
│ ├── network/
│ ├── nft/
│ └── stack/
├── abi/ # Contract interfaces
├── utils/ # Helpers like cache.ts
├── addresses.ts # Key contracts addys
├── clients.ts # RPC/Alchemy/Redis
├── config.ts # Env-based setup
├── middleware.ts # Auth/logging if needed
├── types.ts # Shared outputs
└── xmcp.config.ts # xmcp server config
Categories keep things modular. Add a tool to /tools/gasback/ and xmcp auto-picks it up. No monolith mess.
import { z } from 'zod';
import { type InferSchema } from 'xmcp';
export const schema = {
address: z.string().describe('Wallet to analyze'),
};
export const metadata = {
name: 'myTool',
description: 'Custom tool for fun insights',
annotations: {
title: 'My Tool',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
requiresWallet: false,
category: 'gasback',
chainableWith: ['getShapeCreatorAnalytics'],
},
};
export default async function myTool({ address }: InferSchema<typeof schema>) {
// Logic here
return {
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
};
}
Redis cuts RPC load for repeat calls. Set REDIS_URL to your instance (Vercel KV or Upstash). Skip it? Tools run direct, no sweat. See cache.ts for the simple get/set logic.
Fork this repo and deploy your personal MCP:
SHAPE_RPC_URL (your node), ALCHEMY_API_KEY, CHAIN_ID (360 for mainnet, or 11011 for testnet), optional REDIS_URLUse your own Alchemy API key to avoid public RPC limits. Default falls back to Shape’s public node https://mainnet.shape.network and https://sepolia.shape.network.
Contact @williamhzo or hop into Shape Discord.
MIT LICENSE - See LICENSE
Выполни в терминале:
claude mcp add shape-mcp-server -- npx Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai