An MCP server that lets LLM agents query the CZ CELLxGENE Discover Census single-cell atlas with ontology-aware filtering, cost limits, and provenance/attribution on responses. It supports use in MCP clients like Cursor, Claude Desktop, and Claude Code for natural-language questions about cell composition and gene expression.
From the registry: MCP server for the CZ CELLxGENE Census. Single-cell, ontology-aware. Community, unaffiliated.
$ uv tool install "cxg-census-mcp[census]"https://pypi.org/project/cxg-census-mcp/Please install the `cxg-census-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install uv/uvx** — Install Astral's uv so you can run the recommended PyPI-based MCP server via uvx. (https://docs.astral.sh/uv/)
- **Install the package from PyPI with census support** — Install the MCP server package with the optional [census] extra for real Census access. Without the extra, the server runs in mock mode. Run: `uv tool install "cxg-census-mcp[census]"` (https://pypi.org/project/cxg-census-mcp/)
Canonical MCP server config (stdio transport):
- command: `<absolute-path-to-uvx>`
- args: ["--from","cxg-census-mcp[census]","cxg-census-mcp"]
- optional environment variables:
- `CXG_CENSUS_MCP_CENSUS_VERSION`: Census release to pin. (example: `<census-version>`)
- `CXG_CENSUS_MCP_CACHE_DIR`: Disk cache root directory. (example: `<your-cache-directory>`)
- `CXG_CENSUS_MCP_MOCK_MODE`: If set to 1, never opens a real Census handle and uses mock mode. (example: `<0-or-1>`)
- `CXG_CENSUS_MCP_LOG_LEVEL`: Python stdlib log level. (example: `<log-level>`)
Note: Recommended portable config uses uvx with an absolute path because MCP clients may not inherit your shell PATH. The server speaks MCP over stdio. No API key is required. Installing without the [census] extra yields mock mode instead of real Census access.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.CXG_CENSUS_MCP_CENSUS_VERSIONPins the Census release to useCXG_CENSUS_MCP_CACHE_DIRRoot directory for disk cacheCXG_CENSUS_MCP_MOCK_MODEIf set to 1, runs without opening a real Census handleCXG_CENSUS_MCP_LOG_LEVELStdlib log level for server loggingAI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Persistent codebase knowledge graph. Survives session restarts and context compaction.
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.