Package Exports
- noya-agent-mcp
- noya-agent-mcp/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (noya-agent-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
noya-agent-mcp
An MCP (Model Context Protocol) server that connects AI agents to the Noya AI platform — enabling crypto trading, prediction markets (Polymarket, Rain), token analysis, DCA strategies, and cross-chain operations through a standardized tool interface.
Prerequisites
- Create an account at agent.noya.ai
- Generate an API key from Settings > API Keys
- Store the key securely — it is shown only once
Installation
Using npx (recommended)
No installation needed. Configure your MCP client to run:
{
"mcpServers": {
"noya-agent": {
"command": "npx",
"args": ["-y", "noya-agent-mcp"],
"env": {
"NOYA_API_KEY": "noya_your_key_here"
}
}
}
}Global install
npm install -g noya-agent-mcpThen run:
NOYA_API_KEY=noya_your_key_here noya-agent-mcpConfiguration
| Environment Variable | Required | Default | Description |
|---|---|---|---|
NOYA_API_KEY |
Yes | — | Your Noya API key (noya_...) |
NOYA_BASE_URL |
No | https://safenet.one |
Noya API base URL |
NOYA_TIMEZONE |
No | System timezone | IANA timezone (e.g. America/New_York) |
EVM_PRIVATE_KEY |
No | — | EVM wallet private key for x402 payments (0x...) |
x402 Payment Support
This server supports the x402 payment protocol. When API endpoints are placed behind a payment gateway, the server automatically handles HTTP 402 Payment Required responses by signing and submitting EVM payments.
To enable, set the EVM_PRIVATE_KEY environment variable to your wallet's private key. The server registers against all EVM chains (eip155:*), so it can pay on any supported network (Base, Ethereum, Arbitrum, etc.) depending on what the server-side endpoint requires.
If EVM_PRIVATE_KEY is not set, the server operates normally without payment capabilities — no other changes needed.
{
"mcpServers": {
"noya-agent": {
"command": "npx",
"args": ["-y", "noya-agent-mcp"],
"env": {
"NOYA_API_KEY": "noya_your_key_here",
"EVM_PRIVATE_KEY": "0xyour_private_key_here"
}
}
}
}Available Tools
noya_send_message
Send a message to the full Noya multi-agent system and receive a complete response. Supports threaded conversations with context persistence.
Parameters:
message(string, required) — The message to sendthreadId(string, required) — Conversation thread ID
Example: "What is the current price of ETH?" with threadId "eth-analysis"
noya_list_threads
List all conversation threads for the authenticated user.
Parameters: None
noya_get_thread_messages
Retrieve all messages from a specific conversation thread.
Parameters:
threadId(string, required) — Thread ID to retrieve
noya_delete_thread
Permanently delete a conversation thread and its messages.
Parameters:
threadId(string, required) — Thread ID to delete
noya_chat_completion
Send a message via the OpenAI-compatible chat completion endpoint. Maintains session history. Does not use the full agent graph — for agent features, use noya_send_message.
Parameters:
message(string, required) — The user messagesessionId(string, required) — Session ID for history
noya_get_session_history
Retrieve message history for a chat session.
Parameters:
sessionId(string, required) — Session ID
noya_clear_session
Clear all message history for a chat session.
Parameters:
sessionId(string, required) — Session ID to clear
noya_get_agent_summary
Get a summary of all available Noya agent types, their specialties, and tools.
Parameters: None
Development
# Install dependencies
npm install
# Build
npm run build
# Run locally
NOYA_API_KEY=noya_xxx node dist/index.jsLicense
MIT