Rexi MCP Server

Rexi MCP Server

Enables AI assistants to interact with the Rexi API through a comprehensive wrapper that provides access to all API endpoints with full parameter support. Includes OpenAPI specification resources and schema access for blockchain and contract-related operations.

Category
Visit Server

README

Rexi MCP Server

An MCP (Model Context Protocol) server that wraps the Rexi API and exposes tools and resources for AI assistants.

Features

Tools

  • list_endpoints(tag: Optional[str]) – Lists all API endpoints discovered from docs/openapi.generated.yaml, optionally filtered by tag.
  • call_rexi(...) – Generic caller for any Rexi API endpoint with full parameter support:
    • method: HTTP method (GET, POST, PUT, PATCH, DELETE, etc.)
    • path: API path (e.g., /v1/contracts/{contract_address})
    • path_params: Dictionary to substitute {placeholders} in the path
    • query: Query parameters as key-value pairs
    • body: Request body (sent as JSON)
    • extra_headers: Additional HTTP headers
    • timeout_seconds: Request timeout (default: 30s)

Resources

  • rexi://openapi – Raw OpenAPI YAML specification
  • rexi://routes – JSON summary of all methods, paths, summaries, and tags
  • rexi://schemas – JSON array of available schema filenames
  • rexi-schemas://{name} – Contents of a specific schema file from schema/ directory

Requirements

  • Python 3.10+
  • Dependencies: Install via pip install -r requirements.txt
    • mcp[cli] – MCP SDK with CLI tools
    • httpx – Async HTTP client
    • PyYAML – YAML parser for OpenAPI spec
    • python-dotenv – Environment variable management
  • Rexi API Key (optional but recommended): Set via REXI_API_KEY environment variable

Environment Setup

Create a .env file in the project root (see .env.example):

REXI_API_KEY=your_api_key_here

Environment variables are loaded automatically when the server starts.

Running with the MCP CLI (Inspector)

From the project root:

uv run mcp dev mcp/server.py
# or with pipx / pip if you installed the CLI another way:
# mcp dev mcp/server.py

This opens the MCP Inspector to interactively test tools and resources.

Install into Claude Desktop (or other hosts)

uv run mcp install mcp/server.py \
  -v REXI_API_KEY=your_api_key_here

You can also pass -f .env to load environment variables from a file.

Configuration

The server determines the base URL from the OpenAPI spec servers[0].url. If not found, it defaults to https://api.rexi.sh.

  • Auth header: x-api-key populated from REXI_API_KEY env var if present.
  • OpenAPI file path: docs/openapi.generated.yaml.
  • Schema directory: schema/.

Notes

  • When calling call_rexi, supply any required path_params to fill placeholders like {contract_address} in the path you pass.
  • query and body are sent as query parameters and JSON body respectively.
  • The server validates nothing beyond basic substitution; refer to the schemas under schema/ for expected shapes.
  • All context parameters (ctx) are automatically injected by FastMCP - you don't need to pass them manually.

Troubleshooting

Import Errors

If you get import errors for mcp, ensure you've installed the dependencies:

pip install -r requirements.txt

API Key Issues

If API calls fail with authentication errors, verify your REXI_API_KEY is set correctly in your .env file or environment.

Missing OpenAPI/Schema Files

The server gracefully handles missing docs/openapi.generated.yaml and schema/ directory. If these files are missing:

  • list_endpoints() will return an empty list
  • Resources will return appropriate error messages
  • The server will still start and run

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured