This server provides MCP (Model Context Protocol) tools for interacting with Story's Python SDK.
- Get license terms
- Mint and register IP Asset with PIL Terms
- Mint license tokens
- Send $IP to a wallet
- Upload image to ipfs via Pinata [External]
- Upload ip and nft metadata via Pinata [External]
- Install dependencies using uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync
- Copy
.env.example
to.env
and fill in your credentials:
cp .env.example .env
Environment variables:
WALLET_PRIVATE_KEY
: Your EVM wallet private keyRPC_PROVIDER_URL
: Your RPC provider URL. You can use the default one provided.SPG_NFT_CONTRACT
: The address of the SPG NFT contract. You can use the default one provided.PINATA_JWT
: [optional] JWT for uploading images/metadata to pinata. You need this to upload metadata to IPFS when registering an IP. You can get this by creating a new app on pinata
- Use inspector to test the server:
uv run mcp dev server.py
get_license_terms
: Retrieve license terms for a specific IDmint_license_tokens
: Mint license tokens for a specific IP and license termssend_ip
: Send IP tokens to a specified address using native token transferupload_image_to_ipfs
: Upload an image to IPFS and return the URIcreate_ip_metadata
: Create NFT metadata for a specific image URImint_and_register_ip_with_terms
: Mint and register an IP with terms
You can use the following parameters to test the tool:
commercial_rev_share
: 5derivatives_allowed
: Trueregistration_metadata
:
{
"ip_metadata_uri": "https://azure-wooden-quail-605.mypinata.cloud/ipfs/QmcvC23URQPKSHYB9Xy5AFswy2SKqUYPRg7iYtL5ZqEi7b",
"ip_metadata_hash": "0xe74a304f3ca32924cef88f7445eca413ff8f80d265417bfc93d6765bb26e4dec",
"nft_metadata_uri": "https://azure-wooden-quail-605.mypinata.cloud/ipfs/QmegKQTYSeaNgKBncYTPWMJeykHVwDgsiFf493fkXBaWcb",
"nft_metadata_hash": "0x5c6e29420f759a5cc6497ad1d564db70e2742790f4123225a093209ad55340d7"
}
You can use these tools with any MCP-compatible client. The tools are exposed through the MCP protocol and can be accessed using any AI framework of your choosing.