- Explore MCP Servers
- mcp-atp
Mcp Atp
What is Mcp Atp
mcp-atp is a Model Context Protocol server designed for IQAI’s Agent Tokenization Platform, enabling interaction with various functionalities related to AI agents.
Use cases
Use cases for mcp-atp include AI assistants accessing agent data, IDE extensions managing agent tokens, and custom applications that require interaction with the Agent Tokenization Platform.
How to use
To use mcp-atp, install the required dependencies like Node.js and pnpm, then utilize the provided MCP tools to interact with the ATP functionalities such as fetching agent statistics, managing token positions, and trading agent tokens.
Key features
Key features of mcp-atp include fetching agent statistics, retrieving user token holdings, buying and selling agent tokens, accessing agent logs, and adding new log entries.
Where to use
mcp-atp can be used in fields related to artificial intelligence, blockchain technology, and token management, particularly for applications involving AI agents.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Atp
mcp-atp is a Model Context Protocol server designed for IQAI’s Agent Tokenization Platform, enabling interaction with various functionalities related to AI agents.
Use cases
Use cases for mcp-atp include AI assistants accessing agent data, IDE extensions managing agent tokens, and custom applications that require interaction with the Agent Tokenization Platform.
How to use
To use mcp-atp, install the required dependencies like Node.js and pnpm, then utilize the provided MCP tools to interact with the ATP functionalities such as fetching agent statistics, managing token positions, and trading agent tokens.
Key features
Key features of mcp-atp include fetching agent statistics, retrieving user token holdings, buying and selling agent tokens, accessing agent logs, and adding new log entries.
Where to use
mcp-atp can be used in fields related to artificial intelligence, blockchain technology, and token management, particularly for applications involving AI agents.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
MCP-ATP: Model Context Protocol Server for IQ AI Agent Tokenization Platform
This project implements a Model Context Protocol (MCP) server to interact with the IQ AI Agent Tokenization Platform (ATP). It allows MCP-compatible clients (like AI assistants, IDE extensions, or custom applications) to access ATP functionalities such as viewing agent statistics, managing token positions, trading agent tokens, and handling agent logs.
This server is built using TypeScript and fastmcp
.
Features (MCP Tools)
The server exposes the following tools that MCP clients can utilize:
ATP_AGENT_STATS
: Fetch statistics and details for a specific AI agent.- Parameters:
tokenContract
(string)
- Parameters:
ATP_GET_AGENT_POSITIONS
: Retrieve the user’s current holdings in ATP AI tokens.- Requires
WALLET_PRIVATE_KEY
in the environment.
- Requires
ATP_BUY_AGENT
: Purchase AI agent tokens using IQ as the base currency.- Parameters:
tokenContract
(string),amount
(string) - Requires
WALLET_PRIVATE_KEY
in the environment.
- Parameters:
ATP_SELL_AGENT
: Sell AI agent tokens back to the protocol.- Parameters:
tokenContract
(string),amount
(string) - Requires
WALLET_PRIVATE_KEY
in the environment.
- Parameters:
ATP_GET_AGENT_LOGS
: Retrieve logs for a specific AI agent, with pagination.- Parameters:
agentTokenContract
(string),page
(number, optional),limit
(number, optional)
- Parameters:
ATP_ADD_AGENT_LOG
: Add a new log entry for a specific AI agent.- Parameters:
agentTokenContract
(string),content
(string),apiKey
(string),txHash
(string, optional),chainId
(number, optional) - Note: The
apiKey
for this tool is passed as a parameter directly by the calling client, not from the server’s environment.
- Parameters:
Prerequisites
- Node.js (v18 or newer recommended)
- pnpm (See https://pnpm.io/installation)
Installation
There are a few ways to use mcp-atp
:
1. Using pnpm dlx
(Recommended for most MCP client setups):
You can run the server directly using pnpm dlx
without needing a global installation. This is often the easiest way to integrate with MCP clients. See the “Running the Server with an MCP Client” section for examples.
(pnpm dlx
is pnpm’s equivalent of npx
)
2. Global Installation from npm (via pnpm):
Install the package globally to make the mcp-atp
command available system-wide:
pnpm add -g @iqai/mcp-atp
3. Building from Source (for development or custom modifications):
-
Clone the repository:
git clone https://github.com/IQAIcom/mcp-atp.git cd mcp-atp
-
Install dependencies:
pnpm install
-
Build the server:
This compiles the TypeScript code to JavaScript in thedist
directory.pnpm run build
The
prepare
script also runspnpm run build
, so dependencies are built upon installation if you clone and runpnpm install
.
Configuration (Environment Variables)
This MCP server requires certain environment variables to be set by the MCP client that runs it. These are typically configured in the client’s MCP server definition (e.g., in a mcp.json
file for Cursor, or similar for other clients).
-
ATP_WALLET_PRIVATE_KEY
: (Required forATP_GET_AGENT_POSITIONS
,ATP_BUY_AGENT
,ATP_SELL_AGENT
)- The private key of the wallet to be used for interacting with the ATP platform (e.g., fetching positions, signing transactions for buying/selling tokens).
- Security Note: Handle this private key with extreme care. Ensure it is stored securely and only provided to trusted MCP client configurations.
-
ATP_API_KEY
: (Potentially required for some services, e.g., ifAgentStatsService
or other services need it for their backend API calls – currently,ATP_ADD_AGENT_LOG
takes it as a direct parameter).- An API key for accessing certain IQ ATP backend services.
Running the Server with an MCP Client
MCP clients (like AI assistants, IDE extensions, etc.) will run this server as a background process. You need to configure the client to tell it how to start your server.
Below is an example configuration snippet that an MCP client might use (e.g., in a mcp_servers.json
or similar configuration file). This example shows how to run the server using the published npm package via pnpm dlx
.
Alternative if Globally Installed:
If you have installed mcp-atp
globally (pnpm add -g @iqai/mcp-atp
), you can simplify the command
and args
:
command
: The executable to run.- For
pnpm dlx
:"pnpm"
(with"dlx"
as the first arg) - For global install:
"mcp-atp"
- For
args
: An array of arguments to pass to the command.- For
pnpm dlx
:["dlx", "@iqai/mcp-atp"]
- For global install:
[]
- For
env
: An object containing environment variables to be set when the server process starts. This is where you provideWALLET_PRIVATE_KEY
,ATP_API_KEY
(if needed by the server env), andATP_USE_DEV
.workingDirectory
: Generally not required when using the published package viapnpm dlx
or a global install, as the package should handle its own paths correctly. If you were running from source (node dist/index.js
), then settingworkingDirectory
to the project root would be important.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.