originforge-generate-nft-mcp
1
This project is designed to fetch, display, and save NFT data from the Origin Forge API. It offers a range of functionalities including viewing attributes, fetching data in JSON format, and operating as an MCP server for enhanced NFT data handling.
NFT Data Viewer
This project is a tool for fetching, displaying, and storing NFT data from the Origin Forge API.
Features
- Fetch NFT data
- Display attributes and color palette
- Save SVG images and JSON metadata
- MCP (Model Context Protocol) server functionality
Usage
Simple Data Viewer
Enhanced Viewer with Image Saving
Run MCP Server
MCP Server Functions
The MCP server provides the following tools:
get-nft-data
- Fetch basic NFT informationget-nft-image
- Fetch NFT image dataget-nft-attributes
- Fetch detailed NFT attributesget-color-palette
- Fetch NFT color paletteget-enhanced-nft-view
- Display enhanced NFT viewsave-nft-files
- Save NFT images and JSON data to files (parameter: outputDir)get-random-nfts
- Fetch multiple random NFTs (parameter: count)
File Saving Example
The save-nft-files
tool stores the following files:
- SVG image files
- JSON metadata files
- Original API response data
Fetching Multiple NFTs
The get-random-nfts
tool allows fetching multiple random NFTs once. Default is 3, adjustable between 1-5 using the count
parameter.
Image Example
Saved images can be found in the nft-output
directory, each including SVG format and JSON metadata.