MCP Server Setup
Prerequisites
- A Moneat backend with MCP enabled
- A dedicated MCP key with the tools your client should be able to use
Generating an MCP key
- Log into your Moneat dashboard
- Navigate to Settings → API Keys → MCP
- Click Create Key
- Give it a descriptive name (e.g., "Cursor IDE")
- Select the tool sections this client should be able to use
- Copy the generated key (it won't be shown again)
Connecting from Cursor IDE
Add to your Cursor MCP configuration (.cursor/mcp.json):
JSON
{
"mcpServers": {
"moneat": {
"url": "https://your-moneat-instance/v1/mcp",
"headers": {
"Authorization": "Bearer YOUR_MCP_KEY"
}
}
}
}Connecting from a custom agent
Use any MCP-compatible client library that supports Streamable HTTP:
- Initialize a Streamable HTTP MCP session with
POST /v1/mcp - Pass
Authorization: Bearer YOUR_MCP_KEYas a header - Include
Accept: application/json, text/event-stream - Reuse the returned
mcp-session-idheader for subsequent JSON-RPC requests - Receive direct JSON responses
Example with curl
Shell
MCP_SESSION_ID=$(
curl -i -X POST "https://your-moneat-instance/v1/mcp" \
-H "Authorization: Bearer YOUR_MCP_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"1.0.0"}}}' \
| awk -F': ' 'tolower($1) == "mcp-session-id" {print $2}' \
| tr -d '\r'
)
curl -X POST "https://your-moneat-instance/v1/mcp" \
-H "Authorization: Bearer YOUR_MCP_KEY" \
-H "mcp-session-id: ${MCP_SESSION_ID}" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'Authentication
The MCP server authenticates using dedicated Moneat MCP keys. Keys must be provided as an Authorization header:
Authorization: Bearer YOUR_MCP_KEY
Existing Sentry API tokens are still accepted for compatibility, but dedicated MCP keys are recommended.
The key determines which organization's data and which MCP tools the session can access.
Available tools
Once connected, run tools/list to see all available tools. See the
Tools Reference for the complete list.