SimpleFunctions
ADAPTER·GitHub·Other

Prediction Market MCP Example

Minimal MCP compatibility example backed by SimpleFunctions

Copy-pastable reference implementation of an MCP compatibility adapter backed by the SimpleFunctions API. Shows the minimum wire-up for a stdio MCP process that registers four tools and hands them to an MCP-compatible client.

MCP is a compatibility layer for hosts that require it. For local agents and shell workflows, prefer the sf CLI; for remote services, prefer the HTTP/Data API.

Use it as a starting point for your own MCP integration, or as a reading reference if you're learning MCP.

Quickstart

Clone the repo, set SF_API_KEY, then point Claude Desktop or Cursor at the built server.

git clone https://github.com/spfunctions/prediction-market-mcp-example
cd prediction-market-mcp-example
npm i && npm run build

Tags

mcpadapterexampleclaudecursor

Related