patternfetch
This server provides token-compact crypto market analysis for AI agents, turning a ticker + timeframe into structured, interpreted market intelligence without dumping raw OHLCV data into context.
patternfetch_brief— Get a full market-state brief for any crypto pair and timeframe, including compact candle representation, detected chart/candlestick patterns with confidence scores, support/resistance levels, trend/regime analysis, interpreted indicators (RSI/EMA state), and a one-line natural language summary.patternfetch_delta— Poll a market efficiently by fetching only what changed since the last brief (trend flips, new patterns, RSI-state changes), minimizing token usage; returnschanged=falsewhen nothing material has shifted.patternfetch_analogs— Find historical price windows that resemble the current setup and return the full distribution of outcomes (win-rate, median, min, max, sample size) over a configurable forward horizon.patternfetch_capabilities— List all supported assets, timeframes, endpoints, and usage limits.Create API Keys — Generate a self-serve API key with a small amount of free credit.
⚠️ All outputs are impersonal market data for informational purposes only — not investment advice.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@patternfetchget a brief for BTC/USDT on 4h timeframe"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
patternfetch
One call turns a crypto ticker + timeframe into a token-compact market-state brief — compact candles, detected chart/candlestick patterns, support/resistance, trend/regime, and interpreted indicators (RSI/EMA state) plus a one-line summary. So your AI agent never has to dump raw OHLCV into its context (saves tokens, avoids numeric hallucination).
Agent-first API + MCP. Crypto spot, minute-to-daily. Pay per call via x402 (USDC on Base, no account) or Stripe. Impersonal market data — not investment advice.
Why it's smaller: for BTC/USDT 4h (120 candles), a raw OHLCV dump is ~3,260 tokens of just numbers the model still has to analyze; patternfetch's interpreted analysis is ~1,323 tokens, already decided. Reproduce it (no account needed).
Install
npm install patternfetchRelated MCP server: coin-mcp
Quickstart
import { Patternfetch } from 'patternfetch';
// free key (small free credit included)
const { key } = await new Patternfetch().createKey('you@example.com');
const pf = new Patternfetch({ apiKey: key });
const brief = await pf.brief({ ticker: 'BTC/USDT', timeframe: '4h' });
console.log(brief.analysis.nl);
// "BTC/USDT: uptrend (strong), +2.1% last 4h, RSI 68 (neutral), bullish_engulfing (conf 1)."
console.log(brief.analysis.patterns, brief.analysis.levels, brief.analysis.regime);Or with curl:
curl -X POST https://patternfetch.com/v1/keys -d '{"email":"you@example.com"}'
curl -X POST https://patternfetch.com/v1/brief \
-H "authorization: Bearer pf_..." \
-d '{"ticker":"BTC/USDT","timeframe":"4h"}'Methods
Method | Endpoint | What |
|
| Full market-state brief |
|
| Only what changed since your last brief (token-minimal polling) |
|
| Compact candle codec (rows + SAX) |
|
| Historical analogs as a full outcome distribution |
|
| Capabilities |
|
| Self-serve key + free credit |
MCP
patternfetch is a remote MCP server (Streamable HTTP) at https://patternfetch.com/mcp.
Tools: patternfetch_brief, patternfetch_delta, patternfetch_analogs, patternfetch_capabilities.
Discovery (initialize, tools/list) is free — no key. Only tools/call needs auth.
One-click OAuth (nothing to paste) — in Claude Code, Claude Desktop, Cursor or Smithery, add the URL and authorize once; a free-tier key is minted for you:
claude mcp add --transport http patternfetch https://patternfetch.com/mcpIn claude.ai: Customize → Connectors → Add custom connector → https://patternfetch.com/mcp → Authorize.
Or with a Bearer key — add to your MCP config:
{
"mcpServers": {
"patternfetch": {
"url": "https://patternfetch.com/mcp",
"headers": { "Authorization": "Bearer pf_..." }
}
}
}Get a free key (small starter credit) at https://patternfetch.com/v1/keys.
Local stdio bridge
Prefer a local stdio server (Claude Desktop, sandboxes, no inbound HTTP)? This package
ships patternfetch-mcp, a zero-dependency stdio↔HTTP bridge that exposes the same tools
and forwards calls to patternfetch.com:
{
"mcpServers": {
"patternfetch": {
"command": "npx",
"args": ["-y", "patternfetch-mcp"],
"env": { "PATTERNFETCH_API_KEY": "pf_..." }
}
}
}tools/list works with no key; tool calls use PATTERNFETCH_API_KEY (or x402). Override the
endpoint with PATTERNFETCH_MCP_URL.
Legal
patternfetch provides impersonal market data and algorithmic signals for informational purposes only. NOT investment, financial, legal or tax advice and not a recommendation to buy, sell or hold any crypto-asset. Outputs are not personalized to you. Past performance and historical analogs do not guarantee future results. Crypto-assets are highly volatile — you may lose all capital. Do your own research. See patternfetch.com/disclaimer and /terms.
Maintenance
Latest Blog Posts
- 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/MarvinRey7879/patternfetch-client'
If you have feedback or need assistance with the MCP directory API, please join our Discord server