An MCP (Model Context Protocol) server providing seamless integration with PMXT's unified prediction market API, supporting major markets like Polymarket and Kalshi. Enables AI agents and LLMs to query and interact with prediction markets through standardized tools.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add pmxt-dev --env PMXT_API_KEY='<PMXT_API_KEY>' -- npx -y @pmxt/mcp~/.codex/config.toml
[mcp_servers.pmxt-dev]
command = "npx"
args = ["-y", "@pmxt/mcp"]
env = { PMXT_API_KEY = "<PMXT_API_KEY>" }
# codex mcp add pmxt-dev --env PMXT_API_KEY='<PMXT_API_KEY>' -- npx -y @pmxt/mcp~/.cursor/mcp.json
{
"mcpServers": {
"pmxt-dev": {
"command": "npx",
"args": [
"-y",
"@pmxt/mcp"
],
"env": {
"PMXT_API_KEY": "<PMXT_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"pmxt-dev": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@pmxt/mcp"
],
"env": {
"PMXT_API_KEY": "<PMXT_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"pmxt-dev": {
"command": "npx",
"args": [
"-y",
"@pmxt/mcp"
],
"env": {
"PMXT_API_KEY": "<PMXT_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"pmxt-dev": {
"command": "npx",
"args": [
"-y",
"@pmxt/mcp"
],
"env": {
"PMXT_API_KEY": "<PMXT_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"pmxt-dev": {
"command": "npx",
"args": [
"-y",
"@pmxt/mcp"
],
"env": {
"PMXT_API_KEY": "<PMXT_API_KEY>"
}
}
}
}需要的环境变量
PMXT_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。