- Explore MCP Servers
- mcp-server-kalshi
Mcp Server Kalshi
What is Mcp Server Kalshi
mcp-server-kalshi is an MCP server designed to interact with the Kalshi prediction markets via the Kalshi REST API.
Use cases
Use cases include building applications for market predictions, creating trading bots that leverage prediction market data, and conducting research on market behaviors.
How to use
To use mcp-server-kalshi, configure it with your Kalshi API credentials in a .env file or set it up using Docker. Run the server with the appropriate command after ensuring all dependencies are installed.
Key features
Key features include easy integration with the Kalshi REST API, support for local development, and the ability to run in a Docker container for better environment management.
Where to use
mcp-server-kalshi can be used in financial technology applications, trading platforms, and any service that requires interaction with prediction markets.
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 Server Kalshi
mcp-server-kalshi is an MCP server designed to interact with the Kalshi prediction markets via the Kalshi REST API.
Use cases
Use cases include building applications for market predictions, creating trading bots that leverage prediction market data, and conducting research on market behaviors.
How to use
To use mcp-server-kalshi, configure it with your Kalshi API credentials in a .env file or set it up using Docker. Run the server with the appropriate command after ensuring all dependencies are installed.
Key features
Key features include easy integration with the Kalshi REST API, support for local development, and the ability to run in a Docker container for better environment management.
Where to use
mcp-server-kalshi can be used in financial technology applications, trading platforms, and any service that requires interaction with prediction markets.
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 Server Kalshi
This is an MCP server for the Kalshi REST API
Configuration
Claud Desktop
Setting up with UVX
Setting up with Docker
-
Build the container from root directory
docker build -t mcp-server-kalshi . -
Configure client to run the container (ensure the bind command gives the container access to your rsa key files)
Local Development
-
Create a
.envfile in the root directory with the following variablesBASE_URLThe kalshi API URLKALSHI_API_KEYThe API key for the corresponding environmentKALSHI_PRIVATE_KEY_PATHA filepath to a file containing your Kalshi RSA private key
-
Install deps via
uv pip install -e .Dev deps can be installed withuv pip install -e .[dev] -
Run with
uv run start
Getting Kalshi API Creds
To get Kalshi API creds, follow the instrictions here
Getting a Test Account
You may want to run the server against a kalshi demo account. To get an account, follow the instructions here
Then, set BASE_URL=https://demo-api.kalshi.co for this MCP server and update your KALSHI_API_KEY and KALSHI_PRIVATE_KEY_PATH to point towards credentials generated in the testing environment
UVX
To run in MCP inspector
npx @modelcontextprotocol/inspector uv --directory /path/to/your/mcp-server-kalshi run start
To run in claud desktop, update your MCP config to:
{
"mcpServers": {
"kalshi": {
"command": "uv",
"args": [
"--directory",
"/<path to repo root directory>",
"run",
"start"
],
"env": {
"KALSHI_PRIVATE_KEY_PATH": "PATH TO YOUR RSA KEY FILE",
"KALSHI_API_KEY": "<YOUR KALSHI API KEY>",
"BASE_URL": "https://api.elections.kalshi.com"
}
}
}
}
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.










