Skip to main content

langchain-mycelia-signal

LangChain tools for Mycelia Signal — cryptographically signed oracle data with automatic x402 payment (USDC on Base).

35 tools covering 213 of the API's 214 priced endpoints. No API key, no account.

pip install langchain-mycelia-signal          # free tier
pip install 'langchain-mycelia-signal[paid]'  # + automatic x402 payment

Quick start

from langchain_mycelia_signal import MyceliaSignalTools

tools = MyceliaSignalTools().as_list()        # all 35
tools = MyceliaSignalTools().core()           # the six an agent usually needs

Paid routes answer with a payment notice until a wallet key is set:

export MYCELIA_WALLET_PRIVATE_KEY=0x...

Payment is then handled by the x402 library: an unpaid call returns a challenge, the library signs an EIP-3009 authorization and the request is retried. One settlement per call.


What these tools do — and do not

They measure current market state. They do not forecast.

Out-of-sample testing on 2026-09-25 put MSVI's 24-hour forward correlation with BTC returns at −0.287, against +0.104 in the fitting window and −0.020 over the full period. A sign flip between fitting and holdout is what a dead signal looks like. No Mycelia index has evidence of predicting direction at any magnitude the data can detect, and nothing here should be read as a trade recommendation.

What you get instead is a current, signed, independently verifiable measurement: attested at the moment it was taken, checkable offline against a published key, and the same number for every caller.


The tools

group tools
Prices get_mycelia_price (40 pairs), get_mycelia_vwap
Indices get_mycelia_index (MSVI, MSXI, MSSI, MSTI), get_mycelia_equity_index (MESI, MNVI, MSLI, MSBI, MSERC, MSRI)
Derivatives get_mycelia_funding, get_mycelia_oi, get_mycelia_basis, get_mycelia_liquidations, get_mycelia_liq_flow, get_mycelia_orderbook
Options get_mycelia_iv, get_mycelia_iv_surface, get_mycelia_svi, get_mycelia_greeks, get_mycelia_term_structure, get_mycelia_instruments
Macro get_mycelia_econ, get_mycelia_econ_calendar, get_mycelia_expiry, get_mycelia_cot, get_mycelia_prediction
Regimes get_mycelia_perp_regime, get_mycelia_regime, get_mycelia_intel, get_mycelia_synopsis, get_mycelia_support_resistance
Data get_mycelia_defi_yield, get_mycelia_defi_metrics, get_mycelia_compute, get_mycelia_inference, get_mycelia_gas
Other get_mycelia_history, get_mycelia_weather, get_mycelia_marine, get_mycelia_dlc_info

Prices are not listed here on purpose. They live in config.ROUTES, generated from the proxy's own route table, and are surfaced at call time and in every payment notice. Every price this project ever wrote into prose eventually went stale — one by a factor of ten.

from langchain_mycelia_signal import ROUTES, get_price_usd
get_price_usd("/oracle/econ/us/cpi")     # the price the proxy charges, always current

Alternative: the MCP server

If your framework speaks Model Context Protocol you do not need this package:

https://api.myceliasignal.com/mcp

Streamable HTTP. Attach the URL as a custom connector; the tools arrive with their own descriptions and prices and your agent's own wallet settles x402. This package remains the right choice for LangChain agents and anywhere you want the tools as Python callables.


Upgrading from 2.x

3.0.0 is a breaking change.

  • get_mycelia_marine_seastate → get_mycelia_marine(lat=, lon=)
  • DLC registration tools removed. They POST a $7.00 on-chain commitment, which is not something an agent should be able to do by picking a tool. get_mycelia_dlc_info describes the endpoints instead.
  • get_mycelia_index now takes index= and pair= rather than one tool per index.
  • Several intel kinds renamed to match the MCP server (perp_state, defi_yield_snapshot); the old names still work.

Fixed in 3.0.0: economic and commodity calls were quoted at $0.10 against a real $1.00; as_list() returned three tools twice; marine endpoints sent a literal :mmsi in the URL and never worked; and paid mode signed a payload the facilitator could not verify, so no payment from this package had ever settled.


MIT. Issues: https://github.com/jonathanbulkeley/langchain-mycelia-signal/issues

Metadata

Release files for langchain-mycelia-signal 3.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-mycelia-signal 3.0.1
File Size Uploaded Provenance Actions
langchain_mycelia_signal-3.0.1.tar.gz 87.1 kB Without provenance Details for langchain_mycelia_signal-3.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-mycelia-signal 3.0.1
File Interpreter ABI Platform Actions
langchain_mycelia_signal-3.0.1-py3-none-any.whl Python 3 none any Details for langchain_mycelia_signal-3.0.1-py3-none-any.whl

Total release size: 113.7 kB

Release files / langchain_mycelia_signal-3.0.1.tar.gz

Download URL langchain_mycelia_signal-3.0.1.tar.gz
Size 87.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e01546c0c82c60d47c92aa40d3167d99e0666eb0100d7fadb466a316255d5c40
BLAKE2b-256 checksum
How to use checksums
aeb17c14ae1f25ab14d636b18668e8612e2c3a5fab6177b1e7a375304ae507d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / langchain_mycelia_signal-3.0.1-py3-none-any.whl

Download URL langchain_mycelia_signal-3.0.1-py3-none-any.whl
Size 26.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fd53fae1551f79428937cf9e131685b5e5276d6d087b36618daa6eb61390014
BLAKE2b-256 checksum
How to use checksums
7bec5a74c35a245e653a887f479a2cc35ee0f572270fe3aa630caa6eb3a5b1be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for langchain-mycelia-signal 3.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page