originforge-generate-nft-mcp

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:

  1. get-nft-data - Fetch basic NFT information
  2. get-nft-image - Fetch NFT image data
  3. get-nft-attributes - Fetch detailed NFT attributes
  4. get-color-palette - Fetch NFT color palette
  5. get-enhanced-nft-view - Display enhanced NFT view
  6. save-nft-files - Save NFT images and JSON data to files (parameter: outputDir)
  7. 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.