STEPhie MCP Server
STEPhie MCP Server
Model Context Protocol (MCP) server for STEPhie tools, providing secure access to publisher data and ad forecasting capabilities.
Features
š Secure Authentication via Stack Auth
š Publisher Tools - Access Monday.com publisher data
š Forecast Tools - Google Ad Manager availability forecasting
š Fast Response - Optimized Vercel Edge Functions
š Streaming Support - SSE for real-time updates
Available Tools
Publisher Management
getAllPublishers- Get all publishers with detailsgetPublisherFormats- Get ad formats for publishersgetPublishersByFormats- Find publishers by ad formatsfindPublisherAdUnits- Find ad units for publishersgetAdUnits- Get ad unit details
Product & Pricing
getAllProducts- Get ad productsgetAllFormats- Get ad format specificationsgetAllSizes- Get ad sizesgetAllAdPrices- Get pricing information
Forecasting
availabilityForecast- GAM availability forecasting
Setup
1. Install Dependencies
pnpm install2. Environment Variables
Copy .env.example to .env.local and fill in your credentials:
# Stack Auth (from STEPhie)
NEXT_PUBLIC_STACK_PROJECT_ID=your_project_id
STACK_SECRET_SERVER_KEY=your_secret_key
# Monday.com API
MONDAY_API_KEY=your_monday_key
# Database (shared with STEPhie)
DATABASE_URL=your_neon_database_url3. Local Development
pnpm devServer will be available at http://localhost:3000/api
Client Configuration
For Claude Desktop
Add to your Claude Desktop config:
{
"mcpServers": {
"stephie": {
"url": "https://mcp.stepnetwork.dk/api",
"headers": {
"Authorization": "Bearer YOUR_STACK_AUTH_TOKEN"
}
}
}
}For Programmatic Access
const response = await fetch('https://mcp.stepnetwork.dk/api', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_TOKEN'
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'tools/call',
params: {
name: 'getAllPublishers',
arguments: { limit: 10 }
},
id: 1
})
});Getting an Auth Token
Log in to STEPhie at https://ai.stepnetwork.dk
Navigate to Settings ā API Keys
Generate a new MCP token
Use the token in your MCP client configuration
Deployment
Deploy to Vercel
vercel --prodAdd Domain in Vercel
Go to Project Settings ā Domains
Add
mcp.stepnetwork.dkUpdate DNS records:
Type: CNAME Name: mcp Value: cname.vercel-dns.com
API Documentation
Initialize Connection
POST /api
{
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"authToken": "YOUR_TOKEN"
},
"id": 1
}List Available Tools
POST /api
{
"jsonrpc": "2.0",
"method": "tools/list",
"id": 2
}Call a Tool
POST /api
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "getAllPublishers",
"arguments": {
"limit": 10,
"active": true
}
},
"id": 3
}Development
Project Structure
stephie-mcp/
āāā api/ # Vercel API endpoints
ā āāā index.ts # Main MCP endpoint
ā āāā sse.ts # SSE streaming endpoint
ā āāā health.ts # Health check
āāā lib/
ā āāā auth/ # Stack Auth integration
ā āāā tools/ # Tool implementations
ā āāā monday/ # Monday.com client
ā āāā types/ # TypeScript types
āāā package.jsonAdding New Tools
Add tool definition in
api/index.tsAVAILABLE_TOOLS arrayImplement handler in
lib/tools/Add to executeToolHandler switch statement
Support
Documentation: https://ai.stepnetwork.dk/docs/mcp
Email: support@stepnetwork.dk
License
MIT Ā© STEP Networks
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nate-step/stephie-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server