TheLunarCompany

lunar

Built by TheLunarCompany • 409 stars

What is lunar?

A high-performance MCP server implementation for lunar that bridges the gap between the Model Context Protocol and external services. It allows Large Language Models to interact with your data and tools with low latency and native support.

How to use lunar?

1. Ensure you have an MCP-compatible client (like Claude Desktop) installed. 2. Configure your server with: npx @modelcontextprotocol/lunar 3. Restart your client and verify the new tools are available in the system catalog.
🛡️ Scoped (Restricted)
npx @modelcontextprotocol/lunar --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/lunar

Key Features

Native MCP Protocol Support
High-performance Data Streaming
Type-safe Tool Definitions
Seamless Environment Integration

Optimized Use Cases

Connecting external databases to AI workflows
Automating workflow tasks via natural language
Augmenting developer productivity with specialized tools

lunar FAQ

Q

What is an MCP server?

MCP is an open standard that enables developers to build secure, two-way integrations between AI models and local or remote data sources.

Q

Is this server ready for production?

Yes, this server follows standard MCP security patterns and tool-restricted access.

Official Documentation

View on GitHub
<div align="center"> <img src="readme-files/logo-light.png#gh-light-mode-only" width="50%" height="50%" /> <img src="readme-files/logo-dark.png#gh-dark-mode-only" width="50%" height="50%" />

<a href="https://opensource.org/licenses/MIT">License</a> <a href="https://docs.lunar.dev/">Documentation</a> <a href="https://lunar.dev/">Website</a>

</div>

Welcome to Lunar.dev

Lunar.dev is an open-source platform for managing, governing and optimizing third-party API consumption across applications and AI agent workloads at scale.

<div align="center"> <img src="readme-files/lunar-flow-light.svg#gh-light-mode-only" > <img src="readme-files/lunar-flow-dark.svg#gh-dark-mode-only" > </div>

Consumption Management for the AI Era

As AI agents and autonomous workflows increasingly rely on external APIs, there's a growing need for a mediation layer that acts as a central aggregation point between applications, agents, and the services they depend on.

Lunar.dev provides that layer—serving as a unified API Gateway for AI, delivering:

  • Live API Traffic Visibility: Get real-time metrics on latency, errors, cost, and token usage across all outbound traffic, including LLM and agent calls.
  • AI-Aware Policy Enforcement: Control tool access, throttle agent actions, and govern agentic traffic with fine-grained rules.
  • Advanced Traffic Shaping: Apply rate limits, retries, priority queues, and circuit breakers to manage load and ensure reliability.
  • Cost & Performance Optimization: Identify waste, smooth traffic peaks, and reduce overuse of costly APIs through smart gateway policies.
  • Centralized MCP Aggregation: Streamline operations by consolidating multiple MCP servers into a single gateway, enhancing security, observability, and management.

Choose Your Path

Lunar.dev is composed of two major components:

  • Lunar Proxy – our core API gateway and control layer
  • Lunar MCPX – a zero-code aggregator for multiple MCP servers with unified API access

Explore the one that fits your needs—or use both for a full-stack solution.

Open Source at the Core

This project was born out of the need for a more robust, production-ready approach to managing third-party APIs. It remains open-source at its core and free for non-production/personal use. For production environments, we offer advanced features through guided onboarding and platform tiers; visit our website or reach out directly for more information

Global Ranking

6.2
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "lunar": { "command": "npx", "args": ["lunar"] } } }