mcp claude
An MCP server that helps users create NFT collections, deploy smart contracts to the Monad blockchain, and generate mint websites with Claude AI integration.
An MCP server that helps users create NFT collections, deploy smart contracts to the Monad blockchain, and generate mint websites with Claude AI integration.
Model Context Protocol (MCP) kullanılarak geliştirilmiş, NFT koleksiyonları oluşturan, akıllı kontratlar deploy eden ve mint web sayfaları oluşturan bir araç.
Repository yi klonlayın:
git clone https://github.com/KULLANICI_ADI/REPO_ADI.git
cd REPO_ADI
Bağımlılıkları yükleyin:
npm install
.env
dosyasını oluşturun:
# Özel Anahtar (Bu değeri gerçek private key ile değiştirin)
PRIVATE_KEY=0x...
# API Port
PORT=3000
# Network
RPC_URL=https://testnet-rpc.monad.xyz/
Projeyi build edin ve başlatın:
npm run build
npm start
MCP API si şu endpoint üzerinden sunulmaktadır: http://localhost:3000/api/mcp
NFT Koleksiyonu Oluşturma:
curl -X POST http://localhost:3000/api/mcp -H "Content-Type: application/json" -d {
"tool": "create-nft",
"params": {
"collectionName": "My NFT Collection",
"symbol": "MNFT",
"totalSupply": 100,
"mintPrice": 0.05,
"description": "Örnek NFT koleksiyonu",
"imageZipPath": "./nft-images.zip"
}
}
Mint Web Sayfası Oluşturma:
curl -X POST http://localhost:3000/api/mcp -H "Content-Type: application/json" -d {
"tool": "generate-website",
"params": {
"title": "My NFT Collection",
"description": "Örnek NFT koleksiyonu mint sayfası",
"collectionInfo": {
"name": "My NFT Collection",
"supply": 100,
"price": "0.05",
"contractAddress": "0x87F735a3B5a24a587c8C4588bDB3fD2c1857C40D"
}
}
}
Bu MCP aracı Claude AI ile entegre çalışabilir. Claude a şu şekilde kullanım talimatları verebilirsiniz:
Bu MCP aracını kullanarak bir NFT koleksiyonu oluşturmak istiyorum.
Koleksiyon adı "Claude NFT", sembolü "CNFT", toplam arzı 50, mint fiyatı 0.01 ETH olsun.
Bana doğru JSON formatında istek oluşturur musun?
{
"tool": "create-nft",
"params": {
"collectionName": "Claude NFT",
"symbol": "CNFT",
"totalSupply": 50,
"mintPrice": 0.01,
"description": "Claude tarafından oluşturulmuş NFT koleksiyonu",
"imageZipPath": "./nft-images.zip"
}
}
Bu isteği MCP sunucunuza gönderebilir ve sonuçları Claude ile paylaşabilirsiniz.
MCP aracını Cursor IDE ile entegre etmek için:
.cursor/mcp.json
dosyasını oluşturunMIT
When deploying NFT contracts, the tool handles private keys in the following priority:
PRIVATE_KEY
in your .env
fileconst nftLaunchTool = new NftLaunchTool();
const context = new Map();
// Set private key securely in context
context.set( privateKey , your-private-key-here );
// Create NFT with the provided context
const result = await nftLaunchTool.createNft({
collectionName: My NFT Collection ,
symbol: MNFT ,
description: A unique collection of digital art ,
totalSupply: 100,
mintPrice: 0.05 ,
imageZipPath: ./path/to/images.zip ,
}, context);
You can also deploy a contract directly with the private key in context:
const deployResult = await nftLaunchTool.deployContract({
collectionName: My NFT Collection ,
symbol: MNFT ,
totalSupply: 100,
mintPrice: 0.05 ,
metadataUri: ipfs://QmYourMetadataCID ,
rpcUrl: https://mainnet.infura.io/v3/YOUR_API_KEY // Optional - defaults to localhost:8545
}, context);
console.log(`Contract deployed at: ${deployResult.contractAddress}`);