
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted MCP server offering econometric market microstructure analysis and manipulation detection tools against live financial data.
Market Microstructure & Manipulation MCP server is cataloged as an MCP server attributed to apifyforge. A hosted MCP server offering econometric market microstructure analysis and manipulation detection tools against live financial data. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Market Microstructure & Manipulation MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It classifies four patterns: layering, spoofing, wash trading, and momentum ignition.
Yes; Apify scheduling can trigger recurring runs that call the server, with webhooks firing on detected alerts.
Its heavier-tailed emissions make it more robust to outliers and financial crises where returns show extreme kurtosis.
README.md · 7fa3f07cbbf4 · 采集于 2026-11-13 14:02:10 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Add to your MCP client (Claude Desktop, Cursor, Windsurf):
{
"mcpServers": {
"market-microstructure-manipulation-mcp": {
"url": "https://ryanclinton--market-microstructure-manipulation-mcp.apify.actor/mcp"
}
}
}
Market microstructure analysis and manipulation detection via an MCP server that orchestrates 14 financial data actors in parallel. Built for quantitative researchers, compliance teams, and algorithmic traders who need production-grade econometric methods — Hawkes processes, BOCPD, spectral transfer entropy, Granger causality, and game-theoretic surveillance optimization — without managing infrastructure.
Connect any MCP-compatible AI client to analyze order book dynamics, detect spoofing and layering, measure cross-asset information flow, decompose bid-ask spreads, identify abnormal insider flows, discover causal manipulation networks, classify market regimes, and optimize surveillance resource allocation. All eight tools run against live data assembled from Finnhub, SEC EDGAR, SEC insider filings, congressional stock disclosures, CoinGecko, ECB rates, FRED, BLS, and more.
| Data Point | Source | Coverage |
|---|---|---|
| 📈 Stock prices and financials | Finnhub | US equities, quotes, earnings, company metrics |
| 📋 SEC regulatory filings | EDGAR | 10-K, 10-Q, 8-K, enforcement actions |
| 👤 Insider transactions | SEC Form 4 | Officer and director buys, sells, option exercises |
| 🏛️ Congressional stock trades | STOCK Act tracker | Senate and House member trade disclosures |
| 🪙 Cryptocurrency markets | CoinGecko | 10,000+ coins, prices, volumes, market caps |
| 💱 Currency exchange rates | Exchange Rate Tracker | 150+ live currency pairs |
| 🇪🇺 ECB reference rates | ECB Exchange Rates | Daily EUR reference rates for FX microstructure |
| 📉 Federal Reserve indicators | FRED | FEDFUNDS, VIX, GDP, macroeconomic series |
| 📊 Labor market statistics | BLS | CPI, unemployment, PPI for regime context |
| 📰 Federal regulations | Federal Register | SEC and CFTC rulemakings and enforcement orders |
| 💬 Tech community signals | Hacker News | Market-relevant technology and finance discussion |
| 🔍 Website change monitoring | Website Change Monitor | Regulatory and corporate page updates |
| 📩 Consumer complaints | CFPB | Financial product complaint trends |
| 📅 Historical exchange rates | Exchange Rate History | Long-term FX time series for trend analysis |
Building market surveillance infrastructure from scratch requires accessing 10+ financial APIs, implementing BOCPD, Hawkes processes, VECM cointegration, and game-theoretic LP solvers — then keeping it maintained as APIs change. Most academic implementations run locally, require Python environments, and break in production.
This MCP server handles all of that. Send a natural-language query from Claude, Cursor, or any MCP client and receive structured analytical output backed by live financial data and peer-reviewed econometric methods.
Quantitative researchers testing high-frequency strategies need to understand order book dynamics before going live. The simulate_order_book_dynamics tool estimates Hawkes process parameters from real market data, returning the branching ratio and criticality index. A branching ratio approaching 1.0 signals a market near self-excitation criticality — a regime where HFT strategies face reflexivity risk. This replaces weeks of custom data pipeline work with a single tool call.
Compliance teams at broker-dealers and exchanges need continuous spoofing and layering surveillance. The detect_spoofing_manipulation tool applies BOCPD to detect changepoints in order flow, classifies them by manipulation type, and returns confidence-scored alerts. Feeding these outputs into a daily webhook delivers an automated surveillance pipeline without proprietary surveillance system costs.
Regulators and enforcement economists investigating manipulation cases need to trace causal relationships between market variables. The discover_manipulation_causality tool applies LASSO-penalized Granger causality with F-statistics and debiased coefficients, returning a directed causal network with p-values. Combine this with the identify_insider_abnormal_flow tool to build an evidence package tracing information leakage from insider trades through to price movements.
Portfolio managers using factor models need to know the current market regime before sizing positions. The classify_market_regimes tool uses a Student-t HMM to classify current conditions as calm, volatile, crisis, or recovery, and returns transition probabilities and expected regime durations. This feeds directly into volatility-targeted allocation frameworks.
Academic researchers studying information transmission across asset classes can use measure_cross_asset_information to quantify directed transfer entropy and Hasbrouck information shares across equities, crypto, and FX simultaneously. The spectral decomposition identifies which frequencies carry the most information flow.
Regulatory agencies with finite enforcement budgets need to allocate resources for maximum deterrence. The optimize_surveillance_strategy tool models the regulator-manipulator interaction as an extensive-form zero-sum game, computing Nash equilibrium action probabilities and returning the optimal budget allocation with detection probability and deterrence effect estimates.
| Tool | Price | Actors | Description |
|---|---|---|---|
simulate_order_book_dynamics | $0.045 | 4 | Hawkes process estimation with branching ratio, criticality index, and queue imbalance |
detect_spoofing_manipulation | $0.050 | 6 | BOCPD spoofing detection with manipulation pattern classification and confidence scores |
measure_cross_asset_information | $0.040 | 5 | Spectral transfer entropy and Hasbrouck information share from Johansen VECM |
decompose_spread_components | $0.035 | 3 | MRR spread decomposition: adverse selection, inventory, order processing, Kyle lambda |
identify_insider_abnormal_flow | $0.045 | 4 | CAR event study [-5,+30] for insider and congressional trades with t-statistics |
discover_manipulation_causality | $0.040 | 5 | LASSO Granger causality network with F-statistics, p-values, and debiased coefficients |
classify_market_regimes | $0.035 | 4 | Student-t HMM with Viterbi path: calm, volatile, crisis, recovery classification |
optimize_surveillance_strategy | $0.040 | 8 | Extensive-form game theory: Nash equilibrium surveillance budget allocation |
Each tool accepts the same two parameters, passed at call time from your MCP client:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | Market query: ticker, asset class, sector, or company name (e.g., "AAPL", "crypto", "energy sector", "Nancy Pelosi") |
max_results | number | No | 40–50 | Maximum results to fetch per actor. Available on simulate_order_book_dynamics and measure_cross_asset_information. Reduce for faster, lower-cost queries. |
hazard_lambda | number | No | 100 | Expected run length between changepoints for BOCPD. Available on detect_spoofing_manipulation. Higher values produce fewer, higher-confidence changepoints. |
classify_market_regimes — it is the cheapest tool ($0.035) and gives immediate context on current market conditions before running more expensive analyses.detect_spoofing_manipulation before optimize_surveillance_strategy — the surveillance optimizer runs BOCPD and HMM internally as prerequisites, so they share the data fetch cost.hazard_lambda for your use case — hazard_lambda: 200 for weekly regime scans reduces false positives; hazard_lambda: 50 for intraday monitoring increases sensitivity.Add to your claude_desktop_config.json:
{
"mcpServers": {
"market-microstructure-manipulation": {
"url": "https://market-microstructure-manipulation-mcp.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}
Add the server URL to your MCP settings panel:
https://market-microstructure-manipulation-mcp.apify.actor/mcp
Set the Authorization header to Bearer YOUR_APIFY_TOKEN.
import anthropic
import json
client = anthropic.Anthropic()
# The MCP server connects via the Apify Standby URL
# Use with Claude or any MCP-compatible framework
# Direct HTTP call example
import urllib.request
payload = json.dumps({
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "detect_spoofing_manipulation",
"arguments": {
"query": "AAPL",
"hazard_lambda": 100
}
},
"id": 1
}).encode()
req = urllib.request.Request(
"https://market-microstructure-manipulation-mcp.apify.actor/mcp",
data=payload,
headers={
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
)
with urllib.request.urlopen(req) as response:
result = json.loads(response.read())
tool_result = json.loads(result["result"]["content"][0]["text"])
print(f"Detected: {tool_result['totalDetected']} manipulation events")
print(f"Changepoints: {tool_result['changepointCount']}")
for alert in tool_result.get("alerts", []):
print(f" [{alert['pattern']}] {alert['asset']} confidence={alert['confidence']:.2f}")
const payload = {
jsonrpc: "2.0",
method: "tools/call",
params: {
name: "classify_market_regimes",
arguments: { query: "SPY crypto macro" }
},
id: 1
};
const response = await fetch(
"https://market-microstructure-manipulation-mcp.apify.actor/mcp",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_APIFY_TOKEN"
},
body: JSON.stringify(payload)
}
);
const data = await response.json();
const result = JSON.parse(data.result.content[0].text);
console.log(`Current regime: ${result.currentRegime}`);
console.log(`Stationary distribution:`, result.stationaryDistribution);
console.log(`Expected durations:`, result.expectedDuration);
for (const regime of result.regimes.slice(0, 3)) {
console.log(` ${regime.regime}: prob=${regime.probability.toFixed(3)}, vol=${regime.volatility.toFixed(4)}`);
}
# Detect spoofing on a specific ticker
curl -X POST "https://market-microstructure-manipulation-mcp.apify.actor/mcp" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "detect_spoofing_manipulation",
"arguments": {
"query": "AAPL",
"hazard_lambda": 100
}
},
"id": 1
}'
# Decompose bid-ask spread
curl -X POST "https://market-microstructure-manipulation-mcp.apify.actor/mcp" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "decompose_spread_components",
"arguments": { "query": "SPY" }
},
"id": 2
}'
# List all available tools
curl -X POST "https://market-microstructure-manipulation-mcp.apify.actor/mcp" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-d '{"jsonrpc":"2.0","method":"tools/list","params":{},"id":3}'
{
"totalDetected": 3,
"changepointCount": 7,
"maxRunLength": 42,
"falsePositiveRate": 0.082,
"alerts": [
{
"timestamp": 1711027200000,
"asset": "AAPL",
"pattern": "layering",
"confidence": 0.87,
"runLength": 12,
"hazardRate": 0.01,
"posteriorChangeProb": 0.923
},
{
"timestamp": 1711040400000,
"asset": "AAPL",
"pattern": "momentum_ignition",
"confidence": 0.74,
"runLength": 5,
"hazardRate": 0.01,
"posteriorChangeProb": 0.761
}
]
}
{
"currentRegime": "volatile",
"transitionMatrix": [
[0.92, 0.06, 0.01, 0.01],
[0.08, 0.81, 0.09, 0.02],
[0.02, 0.11, 0.84, 0.03],
[0.04, 0.08, 0.05, 0.83]
],
"stationaryDistribution": [0.38, 0.31, 0.18, 0.13],
"expectedDuration": {
"calm": 12.5,
"volatile": 5.3,
"crisis": 6.3,
"recovery": 5.9
},
"regimeCount": 4,
"viterbiPath": ["calm", "calm", "volatile", "volatile", "crisis", "recovery"],
"regimes": [
{
"period": "2024-03-21",
"regime": "volatile",
"probability": 0.81,
"mean": -0.0012,
"volatility": 0.0184,
"degreesOfFreedom": 4.2
}
]
}
{
"averageSpread": 0.00312,
"averageLambda": 0.00847,
"rollMeasure": 0.00154,
"amihudIlliquidity": 0.000213,
"components": [
{
"asset": "AAPL",
"adverseSelection": 0.00142,
"inventoryCost": 0.00089,
"orderProcessing": 0.00081,
"totalSpread": 0.00312,
"kyleLambda": 0.00847,
"informedFraction": 0.454
}
]
}
{
"significantCount": 4,
"averageCAR": 0.0312,
"informationShareConcentration": 0.641,
"totalFlows": 12,
"flows": [
{
"insider": "Timothy D. Cook",
"asset": "AAPL",
"tradeDate": "2024-03-15",
"cumulativeAbnormalReturn": 0.0847,
"tStatistic": 2.94,
"eventWindow": [-5, 30],
"informationShare": 0.182
}
]
}
| Field | Type | Description |
|---|---|---|
branchingRatio | number | Spectral radius of alpha/beta matrix. Values >0.9 indicate near-criticality |
criticalityIndex | number | Distance from criticality boundary (0=stable, 1=critical) |
queueImbalance | number | Bid-minus-ask depth normalized by total depth |
meanIntensity | number[] | Mean event intensity per dimension |
kernelNorms | number[][] | DxD matrix of Hawkes kernel L1 norms |
hawkesParams.mu | number[] | Baseline intensities per dimension |
hawkesParams.branchingRatio | number | Branching ratio from EM-estimated parameters |
hawkesParams.logLikelihood | number | Log-likelihood of estimated Hawkes model |
snapshotCount | number | Number of order book snapshots analyzed |
snapshots | OrderBookState[] | Up to 10 order book states with bid/ask depths, mid price, spread, imbalance |
| Field | Type | Description |
|---|---|---|
totalDetected | number | Count of manipulation events classified |
changepointCount | number | Total BOCPD changepoints detected |
maxRunLength | number | Longest stable run between changepoints |
falsePositiveRate | number | Estimated false positive rate |
alerts[].timestamp | number | Unix milliseconds of detected event |
alerts[].asset | string | Asset symbol associated with the alert |
alerts[].pattern | string | One of: layering, spoofing, wash_trading, momentum_ignition |
alerts[].confidence | number | Classification confidence [0,1] |
alerts[].runLength | number | Run length at changepoint |
alerts[].posteriorChangeProb | number | Posterior probability of regime change at this point |
| Field | Type | Description |
|---|---|---|
totalInformationFlow | number | Sum of directed transfer entropy across all asset pairs |
dominantFrequency | number | Frequency carrying the most information flow |
hasbrouckShare | Record<string, number> | Price discovery attribution share per asset |
channels[].source | string | Source asset in the information flow pair |
channels[].target | string | Target asset receiving information |
channels[].spectralTE | number | Spectral transfer entropy value |
channels[].peakFrequency | number | Frequency at which TE peaks |
channels[].significance | number | Statistical significance of the channel |
channels[].lag | number | Estimated lead-lag in periods |
| Field | Type | Description |
|---|---|---|
averageSpread | number | Mean bid-ask spread across analyzed assets |
averageLambda | number | Mean Kyle lambda (price impact coefficient) |
rollMeasure | number | Roll measure from return autocovariance |
amihudIlliquidity | number | Amihud illiquidity ratio |
components[].adverseSelection | number | Adverse selection component of spread |
components[].inventoryCost | number | Inventory holding cost component |
components[].orderProcessing | number | Order processing cost component |
components[].kyleLambda | number | Price impact per unit signed order flow |
components[].informedFraction | number | Estimated fraction of informed traders |
| Field | Type | Description |
|---|---|---|
significantCount | number | Flows with t-statistic above significance threshold |
averageCAR | number | Mean cumulative abnormal return across all flows |
informationShareConcentration | number | HHI of information share (0=dispersed, 1=concentrated) |
flows[].insider | string | Name of insider or congressman |
flows[].cumulativeAbnormalReturn | number | CAR over [-5, +30] event window |
flows[].tStatistic | number | t-statistic for CAR significance |
flows[].eventWindow | [number, number] | Event window bounds in days relative to trade date |
flows[].informationShare | number | Fraction of price discovery attributed to this flow |
| Field | Type | Description |
|---|---|---|
networkDensity | number | Fraction of possible causal links that are significant |
lassoSelectedCount | number | Number of links surviving LASSO soft-thresholding |
strongestLink | CausalLink or null | Link with highest Granger F-statistic |
links[].cause | string | Variable driving causation |
links[].effect | string | Variable receiving causal influence |
links[].grangerFStat | number | F-statistic from Granger causality test |
links[].pValue | number | p-value for Granger causality |
links[].debiasedCoeff | number | Debiased VAR coefficient |
links[].confidenceInterval | [number, number] | 95% confidence interval for coefficient |
links[].lag | number | Lag at which causality operates |
| Field | Type | Description |
|---|---|---|
currentRegime | string | Current state: calm, volatile, crisis, or recovery |
transitionMatrix | number[][] | 4x4 Markov transition probability matrix |
stationaryDistribution | number[] | Long-run probability of each regime |
expectedDuration | Record<string, number> | Expected periods in each regime before transition |
viterbiPath | string[] | MAP sequence of regime states |
regimes[].volatility | number | Regime-specific volatility from Student-t emission |
regimes[].degreesOfFreedom | number | Student-t degrees of freedom (lower = fatter tails) |
| Field | Type | Description |
|---|---|---|
gameValue | number | Nash equilibrium value of the surveillance game |
detectionProbability | number | Probability of detecting manipulation under optimal strategy |
deterrenceEffect | number | Reduction in manipulation probability from optimal surveillance |
optimalBudgetAllocation | Record<string, number> | Budget fraction per surveillance action |
actions[].action | string | Surveillance action label |
actions[].nashEquilibriumProb | number | Nash equilibrium probability of selecting this action |
actions[].expectedDetection | number | Expected detection rate from this action |
actions[].resourceCost | number | Resource cost of this action |
spoofingAlertCount | number | Alert count from prerequisite BOCPD run |
currentRegime | string | Current market regime from prerequisite HMM run |
This MCP server uses pay-per-event pricing — you pay per tool call. Platform compute costs are included.
| Tool | Price per call | 10 calls | 50 calls |
|---|---|---|---|
decompose_spread_components | $0.035 | $0.35 | $1.75 |
classify_market_regimes | $0.035 | $0.35 | $1.75 |
measure_cross_asset_information | $0.040 | $0.40 | $2.00 |
discover_manipulation_causality | $0.040 | $0.40 | $2.00 |
optimize_surveillance_strategy | $0.040 | $0.40 | $2.00 |
simulate_order_book_dynamics | $0.045 | $0.45 | $2.25 |
identify_insider_abnormal_flow | $0.045 | $0.45 | $2.25 |
detect_spoofing_manipulation | $0.050 | $0.50 | $2.50 |
The Apify Free plan includes $5 of monthly platform credits — enough for approximately 100–140 tool calls per month using the standard mix of tools. You can set a maximum spending limit per run to control costs. The server stops when your budget is reached.
Compared to Bloomberg Terminal API ($24,000/year) or Refinitiv Eikon ($22,000/year) for similar financial data access and analytical capabilities, this approach costs a fraction of a cent per analysis and requires no long-term commitment.
When a tool call arrives, the server dispatches between 3 and 8 actor calls simultaneously using Promise.all. Each actor runs in a separate Apify container with 256 MB memory and a 120-second timeout. Data from Finnhub (stock prices, fundamentals), CoinGecko (crypto markets), SEC EDGAR (filings), SEC insider Form 4 data, congressional stock disclosures, exchange rates, ECB rates, FRED macro indicators, and BLS labor data are assembled into a common time series format using extractTimeSeries — a multi-key extractor that resolves price, value, rate, close, amount, volume, and count fields from heterogeneous actor outputs.
Each tool applies a specific peer-reviewed econometric method:
simulate_order_book_dynamics — Encodes price changes as event arrivals in D dimensions (bounded to 3–12 based on data volume). Runs EM estimation: E-step computes parentage probabilities proportional to alpha * exp(-beta * delta_t); M-step updates baseline intensity mu, excitation alpha, and decay beta. Branching ratio is the spectral radius of the alpha/beta matrix computed via 100-iteration power iteration. Criticality index is the clipped distance from the stability boundary.
detect_spoofing_manipulation — Implements BOCPD with normal-inverse-gamma conjugate prior. At each timestep, the algorithm updates the run length posterior using the predictive probability of the observation under the conjugate model and the constant hazard function. Changepoints are declared where the posterior assigns the highest probability to run length zero. The return characteristics around each changepoint — mean, variance, autocorrelation — are used to classify the manipulation pattern.
measure_cross_asset_information — Computes spectral transfer entropy between all asset pairs using AR model-based spectral estimates. Hasbrouck information shares are computed from a Johansen VECM by taking the Cholesky decomposition of the innovation covariance matrix and computing the squared elements of the lower-triangular factor. The dominant frequency is identified at the spectral peak.
optimize_surveillance_strategy — Runs detectSpoofing and classifyRegimes as prerequisites, then builds the surveillance game matrix from the resulting alert counts and regime classification. Fictitious play over 200 iterations converges to the Nash equilibrium mixed strategy. The deterrence effect is computed as the reduction in manipulation probability when the regulator commits to the Nash equilibrium strategy.
Results are serialized as JSON and returned via the MCP protocol's CallToolResult format, with a single text content item containing the full structured output. The Express server handles the MCP transport layer, with CORS enabled for cross-origin clients and the Apify container readiness probe on GET /.
Use regime classification as a preamble. Call classify_market_regimes first with your target asset or sector. Current regime context improves interpretation of all downstream results — spoofing patterns behave differently in crisis vs. calm regimes.
Tune hazard_lambda to your time horizon. The default hazard_lambda: 100 assumes roughly one regime change per 100 observations. For daily data spanning a year, this is appropriate. For intraday data, use hazard_lambda: 500 to avoid over-segmentation.
Combine insider flow with causality discovery. Run identify_insider_abnormal_flow first, then feed the same query to discover_manipulation_causality. The causal network reveals which market variables are downstream of the insider trading detected in the event study.
Use sector queries for cross-asset analysis. measure_cross_asset_information is most informative with broad queries like "US financials" or "crypto DeFi" that return diverse assets across data sources. Single-ticker queries return narrower cross-asset networks.
The surveillance optimizer is most useful after a spoofing alert. When detect_spoofing_manipulation returns alerts, run optimize_surveillance_strategy with the same query. It runs BOCPD and HMM internally and uses those results to calibrate the game-theoretic model — so the surveillance allocation directly reflects current alert conditions.
Lower max_results for faster exploratory queries. Setting max_results: 20 on simulate_order_book_dynamics or measure_cross_asset_information reduces data fetch time and cost. Use higher values (50–100) for production surveillance runs requiring higher statistical power.
Persist results for longitudinal analysis. Store tool outputs in a database and run identical queries weekly. Changes in branching ratio, regime distribution, or causal network density over time reveal structural market shifts that single-point analyses miss.
| Actor | How to combine |
|---|---|
| SEC EDGAR Filing Search | Run a targeted EDGAR search for enforcement actions after detect_spoofing_manipulation alerts to cross-reference historical prosecution patterns for the same asset |
| Congressional Stock Tracker | Feed congressional trade data directly to identify_insider_abnormal_flow for per-member CAR analysis; identify which members' trades precede the largest price movements |
| Finnhub Stock Data | Use as a standalone data source for pre-analysis data validation before sending to the MCP tools |
| FRED Economic Data | Pull macro time series (VIX, FEDFUNDS, yield curve) and overlay regime classification outputs to validate HMM state assignments against macro turning points |
| Website Change Monitor | Monitor SEC enforcement pages and company IR sites; feed change events as query context to detect_spoofing_manipulation for pre-announcement surveillance |
| Hacker News Search | Cross-reference Hacker News discussion sentiment with classify_market_regimes output to assess whether retail attention cycles align with HMM-identified regime transitions |
| CoinGecko Crypto Data | Use for standalone crypto market data pulls to validate simulate_order_book_dynamics branching ratio estimates against raw price series |
max_results: 50 or higher for stable estimates.identify_insider_abnormal_flow results for recent periods should be treated as incomplete.Empty alerts from detect_spoofing_manipulation despite expecting manipulation. The BOCPD algorithm requires sufficient variance in the price series to detect changepoints. If the queried asset has very low volatility in the current data window, the run length posterior will favor long stable runs. Try lowering hazard_lambda to 50 to increase sensitivity, or broaden the query to include more assets.
classify_market_regimes returning the same regime repeatedly. This occurs when the data from all 4 actors returns a homogeneous time series (e.g., all values near zero or all identical). Check that the query returns meaningful data by testing with a broad query like "SPY VIX bonds" that spans multiple asset classes and ensures diverse numeric series.
Tool calls timing out. If upstream actors (especially Finnhub or CoinGecko during high-traffic periods) are slow, the 120-second actor timeout may be reached. The server will return results with empty arrays from the timed-out sources. For time-sensitive use cases, use decompose_spread_components or classify_market_regimes which use fewer actors and are less likely to timeout.
optimize_surveillance_strategy returning uniform budget allocation. The game-theoretic optimizer converges to Nash equilibrium via fictitious play. If the prerequisite BOCPD and HMM runs return no alerts and a stable regime, the game matrix will be near-uniform and so will the allocation. This is a valid result indicating that no single surveillance action dominates when no manipulation signals are present.
Hacker News returning irrelevant results. The Hacker News actor searches by keyword. Generic ticker symbols like "T" or "F" may match unrelated discussion threads. Use company names or more specific query terms (e.g., "Tesla stock" instead of "TSLA") for the tools that include Hacker News as a source.
How does market microstructure manipulation detection work technically?
The detect_spoofing_manipulation tool implements Bayesian Online Changepoint Detection (BOCPD) with a normal-inverse-gamma conjugate prior. At each time step it updates the run length posterior P(r_t | x_{1:t}) using the predictive probability under the conjugate model and a constant hazard function. When the posterior assigns high probability to run length zero, a changepoint is declared. The characteristics of the return series around the changepoint — mean, variance, skewness, autocorrelation — determine whether the pattern is classified as layering, spoofing, wash trading, or momentum ignition.
What manipulation patterns can the MCP detect? The BOCPD detector classifies four patterns: layering (repeated large orders placed and canceled near the top of book), spoofing (large deceptive orders intended to move prices before cancellation), wash trading (self-dealing transactions that create artificial volume), and momentum ignition (sequences designed to trigger stop orders and create cascading price movement).
How accurate is the Hawkes process branching ratio estimate? Accuracy depends on the number of observations. With 50+ price change events, EM typically converges to stable estimates within 20 iterations. The spectral radius power iteration converges reliably for the matrix sizes encountered (3–12 dimensions). Treat branching ratios above 0.9 as indicative of elevated microstructure stress rather than as exact measurements.
Is it legal to analyze congressional stock trades? Yes. Congressional stock disclosures are mandatory public records under the STOCK Act of 2012. The law requires senators and representatives to disclose stock trades within 30–45 days. The data is publicly available through official congressional disclosure databases and is legal to access, analyze, and publish.
How is this different from Bloomberg or Refinitiv market surveillance tools? Bloomberg BTCA and Refinitiv surveillance products cost $22,000–$24,000 per year, require dedicated terminals, and are designed for institutional compliance departments. This MCP server exposes the same analytical methods (Hawkes processes, event studies, Granger causality) for $0.035–$0.050 per analysis call with no subscription, no terminal, and direct integration into any MCP-compatible AI client.
Can I schedule this MCP server to run daily manipulation scans?
Yes. Use Apify's scheduling feature to trigger a recurring actor run that calls the MCP server on a cron schedule. Store results to an Apify dataset and configure a webhook to fire when totalDetected > 0 in the spoofing tool output. This creates a low-cost automated surveillance pipeline.
How many tool calls can I make with the Apify free plan? The Apify Free plan includes $5 of monthly credits. At an average cost of $0.042 per call across all tools, this provides approximately 119 tool calls per month. For heavier usage, the Apify Starter plan at $49/month provides approximately 1,160 tool calls per month.
What happens if one of the 14 data actors fails or times out?
Each actor call is wrapped in a try-catch with a 120-second timeout. If an actor fails, it returns an empty array. The algorithms proceed with the remaining data, degrading gracefully. You can identify partial results by checking whether the snapshotCount or channelCount fields in the output are lower than expected.
How does the Student-t HMM differ from a standard Gaussian HMM? The Student-t emission distribution has heavier tails than the Gaussian, making it more robust to outliers and financial crises where return distributions exhibit extreme kurtosis. The degrees-of-freedom parameter nu is estimated jointly with the regime means and variances. Lower nu values (2–4) indicate fat-tailed regimes typical of crisis periods; higher values (10+) are close to Gaussian and typical of calm regimes.
Can I use this MCP server with AI coding assistants like Cursor or Windsurf?
Yes. Any MCP-compatible client works with this server. Add the server URL https://market-microstructure-manipulation-mcp.apify.actor/mcp to your client's MCP configuration with your Apify token as the Authorization header. The server exposes 8 tools that your AI assistant can call directly from its context window.
Does the game-theoretic surveillance optimizer produce prescriptive recommendations? The output is directionally informative, not prescriptive. The Nash equilibrium budget allocation tells you which surveillance actions have the highest expected detection value under the worst-case manipulator strategy. Real regulatory surveillance programs should use this as one quantitative input alongside legal constraints, data availability, and institutional judgment.
How long does a typical tool call take?
Tool calls that fetch from 3–4 actors (like decompose_spread_components and classify_market_regimes) typically complete in 15–40 seconds. Tools that fetch from 6–8 actors (like detect_spoofing_manipulation and optimize_surveillance_strategy) typically take 30–70 seconds. All actor calls run in parallel, so latency is bounded by the slowest single actor rather than the sum.
If you encounter issues, you can help us debug faster by enabling run sharing in your Apify account:
This lets us see your run details when something goes wrong, so we can fix issues faster. Your data is only visible to the actor developer, not publicly.
Found a bug or have a feature request? Open an issue in the Issues tab on this actor's page. For custom solutions or enterprise integrations, reach out through the Apify platform.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Market Microstructure & Manipulation MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/market-microstructure-manipulation-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.