NebulaBlock API MCP Server
Expose NebulaBlock API as tools for MCP-compatible environments
Key Features
Use Cases
README
NebulaBlock API MCP
This repository hosts the official NebulaBlock API Model Context Protocol (MCP) server. This server integrates with the fastmcp library to expose the full range of NebulaBlock API functionalities as accessible tools, enabling seamless and efficient interaction within any MCP-compatible environment.
Project Structure
.
├── src/
│ ├── __init__.py
│ ├── config.py
│ ├── main.py
│ ├── tools.py
│ └── mcp_project.egg-info/
├── tests/
│ ├── __init__.py
│ └── test_main.py
├── scripts/
├── docs/
├── .env.example
├── .gitignore
├── pyproject.toml
├── README.md
└── uv.lock
src/: Contains the main application source code, including configuration and tool definitions.tests/: Contains unit and integration tests.scripts/: Reserved for utility scripts (e.g., setup, data generation).docs/: Reserved for supplementary documentation..env.example: Example file for environment variables..gitignore: Specifies intentionally untracked files to ignore.pyproject.toml: Project metadata and build system configuration, including dependencies and project information.README.md: This documentation file.uv.lock: Lock file foruvdependency management.
Installation and Setup
To set up and run this project, follow these steps:
-
Clone the repository (if applicable):
bashgit clone https://github.com/Nebula-Block-Data/api-mcp cd mcp-project -
Create a virtual environment: It's highly recommended to use a virtual environment to manage project dependencies.
bashpython3 -m venv .venv -
Activate the virtual environment:
- macOS/Linux:
source .venv/bin/activate
- Install dependencies:
This project uses
pyproject.tomlfor dependency management. Installsetuptoolsand then the project in editable mode.bashThis will installuv pip install -e .fastmcpand any other dependencies specified inpyproject.toml.
Running the NebulaBlock API MCP Server
To start the NebulaBlock API MCP server:
uv run -m src.main
You should see output similar to: [05/29/25 17:32:58] INFO Starting MCP server 'FastMCP' with transport 'stdio'
Configuring API Key
The NebulaBlock API key can be configured in two ways:
-
Using the
--api-keycommand-line argument: You can provide the API key directly when running the application:bashpython -m src.main --api-key your_nebula_block_api_keyThis method will override any API key set in the
.envfile. -
Using a
.envfile: Create a file named.envin the root directory of the project and add your API key to it:NEBULA_BLOCK_API_KEY=your_nebula_block_api_keyThe application will automatically load the API key from this file if the
--api-keyargument is not provided.
Running Tests
To run the unit tests, ensure your virtual environment is activated and pytest is installed (it will be installed with pip install -e .):
pytest
You should see output indicating that the tests passed.
Integrating with an MCP Client
To utilize the NebulaBlock API MCP server, you need to configure your MCP client (e.g., VS Code with an MCP extension) to connect to this server. Below is an example configuration for a settings.json file:
{
"mcpServers": {
"nebula": {
"command": "~/path/to/uv",
"args": [
"--directory",
"~/path/to/nebulablock_mcp",
"run",
"-m",
"src.main",
"--api-key=YOUR_API_KEY"
]
}
}
}
- Replace
~/path/to/uvwith the actual path to youruvexecutable. - Replace
~/path/to/nebulablock_mcpwith the actual path to your project directory. - Replace
YOUR_API_KEYwith your actual NebulaBlock API key.
License
This project is licensed under the MIT License. See the LICENSE file (if created) for details.
Star History
Repository Owner
Organization
Repository Details
Programming Languages
Tags
Join Our Newsletter
Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.
Related MCPs
Discover similar Model Context Protocol servers
FastMCP
The fast, Pythonic way to build MCP servers and clients.
FastMCP is a production-ready framework for building Model Context Protocol (MCP) applications in Python. It streamlines the creation of MCP servers and clients, providing advanced features such as enterprise authentication, composable tools, OpenAPI/FastAPI generation, server proxying, deployment tools, and comprehensive client libraries. Designed for ease of use, it offers both standard protocol support and robust utilities for production deployments.
- ⭐ 20,201
- MCP
- jlowin/fastmcp
Insforge MCP Server
A Model Context Protocol server for seamless integration with Insforge and compatible AI clients.
Insforge MCP Server implements the Model Context Protocol (MCP), enabling smooth integration with various AI tools and clients. It allows users to configure and manage connections to the Insforge platform, providing automated and manual installation methods. The server supports multiple AI clients such as Claude Code, Cursor, Windsurf, Cline, Roo Code, and Trae via standardized context management. Documentation and configuration guidelines are available for further customization and usage.
- ⭐ 3
- MCP
- InsForge/insforge-mcp
Codex MCP Server
An MCP-compatible server delivering enriched blockchain data for AI models.
Codex MCP Server implements the Model Context Protocol to provide enriched blockchain data from Codex. It is compatible with MCP clients such as Claude Desktop and Claude CLI, allowing seamless integration in AI workflows that require blockchain context. Users can run the server locally or via npx, and configure it for various MCP-compatible tools using their Codex API key.
- ⭐ 20
- MCP
- Codex-Data/codex-mcp
Perplexity MCP Server
MCP Server integration for accessing the Perplexity API with context-aware chat completion.
Perplexity MCP Server provides a Model Context Protocol (MCP) compliant server that interfaces with the Perplexity API, enabling chat completion with citations. Designed for seamless integration with clients such as Claude Desktop, it allows users to send queries and receive context-rich responses from Perplexity. Environment configuration for API key management is supported, and limitations with long-running requests are noted. Future updates are planned to enhance support for client progress reporting.
- ⭐ 85
- MCP
- tanigami/mcp-server-perplexity
CyberChef API MCP Server
MCP server enabling LLMs to access CyberChef's powerful data analysis and processing tools.
CyberChef API MCP Server implements the Model Context Protocol (MCP), interfacing with the CyberChef Server API to provide structured tools and resources for LLM/MCP clients. It exposes key CyberChef operations such as executing recipes, batch processing, retrieving operation categories, and utilizing the magic operation for automated data decoding. The server can be configured and managed via standard MCP client workflows and supports context-driven tool invocation for large language models.
- ⭐ 29
- MCP
- slouchd/cyberchef-api-mcp-server
books-mcp-server
A server implementation supporting Model Context Protocol integration with cherry-studio.
books-mcp-server allows users to set up a Model Context Protocol (MCP) compliant server for managing and interacting with AI models. It enables integration with cherry-studio through STDIO commands and structured server configurations. The tool provides straightforward setup instructions and supports launching the server with customizable parameters, making it suitable for various AI context management tasks.
- ⭐ 5
- MCP
- VmLia/books-mcp-server
Didn't find tool you were looking for?