
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@filoz/foc-observer
Advanced tools
MCP stdio server and CLI for querying FOC (Filecoin Onchain Cloud) historical and live chain data and DealBot data.
MCP stdio server and CLI for querying FOC (Filecoin Onchain Cloud) historical and live chain data and dealbot data. Gives AI agents and humans access to indexed event history, live contract state, provider health metrics, and proving data from the FOC smart contract stack on Filecoin.
Public API endpoint URL isn't shared here, you'll either need to run your own or ask for an official endpoint.
Also note that the public endpoint also has a streaming MCP server so this package isn't strictly necessary for AI environments such as Claude Desktop that support streaming connectors. See below.
npx @filoz/foc-observer serve --api-url https://your-server.example.com
Or install globally:
npm install -g @filoz/foc-observer
foc-observer serve --api-url https://your-server.example.com
Register with your MCP host as a stdio server. Examples:
Claude Code:
claude mcp add --transport stdio foc-observer -- foc-observer serve --api-url https://your-server.example.com
Claude Desktop / Cursor / other MCP hosts:
Add to your MCP configuration (e.g. claude_desktop_config.json):
{
"mcpServers": {
"foc-observer": {
"command": "npx",
"args": ["@filoz/foc-observer", "serve", "--api-url", "https://your-server.example.com"]
}
}
}
MCP clients that support Streamable HTTP transport can connect directly to the server endpoint without this package:
https://your-server.example.com/mcp
This package is a thin MCP proxy. The serve command creates a local stdio MCP server that forwards all tool calls to the remote foc-observer HTTP server. No local database, no local indexing—all data comes from the remote endpoint.
Claude Code/Desktop
-> stdio -> foc-observer serve (this package)
-> HTTP -> foc-observer server (/mcp endpoint)
-> Postgres (indexed events)
-> Lotus RPC (live contract state)
-> BetterStack (DealBot metrics)
-> Goldsky subgraph (proving health)
| Option | Required | Description |
|---|---|---|
--api-url <url> | Yes* | foc-observer server URL (e.g. https://your-server.example.com) |
FOC_API_URL env | Yes* | Same, as environment variable. --api-url takes precedence. |
FOC_NETWORK env | No | Default network for CLI commands (mainnet or calibnet, default: mainnet) |
*One of --api-url or FOC_API_URL must be provided.
The same binary provides a human-friendly CLI for direct queries:
# Check connectivity
foc-observer status
# SQL query against indexed events
foc-observer query -n mainnet "SELECT source, COUNT(*) FROM fwss_data_set_created GROUP BY source"
# List tables and row counts
foc-observer tables -n mainnet
# Describe a table's columns
foc-observer describe fwss_data_set_created
# Provider directory
foc-observer providers -n mainnet
foc-observer provider -n mainnet 1
# Dataset details
foc-observer dataset -n mainnet 100
# Payment rail inspection
foc-observer rail -n mainnet 100
# Current pricing
foc-observer pricing -n mainnet
All commands support --json for machine-readable output.
When connected as an MCP server, agents get access to:
| Category | Tools |
|---|---|
| Knowledge | get_system_context (mandatory first call) |
| Events (SQL) | query_sql, list_tables, describe_table, get_status |
| Contract State | get_providers, get_provider, get_dataset, get_dataset_proving, get_rail, get_pricing, get_account, get_auction |
| Quality Metrics | get_dealbot_stats, get_dealbot_providers, get_dealbot_provider_detail, get_dealbot_daily, get_dealbot_failures |
| Proving Health | get_proving_health, get_proving_dataset |
The get_system_context tool returns comprehensive protocol knowledge that agents need to interpret results correctly. Analytical tools require i_have_read_the_system_context: true to confirm context is loaded.
FOC (Filecoin Onchain Cloud) is a layered decentralized storage services marketplace on Filecoin:
Contract source: FilOzone/filecoin-services
This package connects to a remote foc-observer server. To run your own server, see the foc-observer repository.
MIT
FAQs
MCP stdio server and CLI for querying FOC (Filecoin Onchain Cloud) historical and live chain data and DealBot data.
We found that @filoz/foc-observer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.