Multi-Database MCP Server (by Legion AI)

Created By
TheRaLabsa year ago
A server that helps people access and query data in databases using the Legion Query Runner with Model Context Protocol (MCP) in Python.
Overview

What is Legion MCP?

Legion MCP (Model Context Protocol) Server is a server designed to facilitate access and querying of data in databases using the Legion Query Runner, integrated with the Model Context Protocol (MCP) Python SDK.

How to use Legion MCP?

To use Legion MCP, set up the server by installing dependencies, configuring your database connection, and running the server in either development or production mode. You can execute queries and manage database operations through the MCP interface.

Key features of Legion MCP?

  • Database access via Legion Query Runner
  • Support for Model Context Protocol (MCP) for AI assistants
  • Exposes database operations as MCP resources, tools, and prompts
  • Multiple deployment options including standalone and FastAPI integration
  • Flexible configuration through environment variables and command-line arguments

Use cases of Legion MCP?

  1. Enabling AI assistants to interact with databases seamlessly.
  2. Executing complex SQL queries and retrieving results in various formats.
  3. Managing database schemas and metadata for AI applications.

FAQ from Legion MCP?

  • What is the Model Context Protocol (MCP)?

MCP is a specification for maintaining context in AI applications, allowing for stateful interactions with databases.

  • How do I install Legion MCP?

Follow the installation instructions provided in the documentation, which includes setting up a virtual environment and installing dependencies.

  • Can I run Legion MCP in production?

Yes, Legion MCP can be run in production mode with appropriate configurations.

Project Info
Created At
a year ago
Updated At
a year ago
Author Name
TheRaLabs
Star
30
Language
Python
License
GPL-3.0 license

Recommend Servers

View All
Trainzilla Mcp

8 hours ago
Shippo
@Shippo

2 days ago
//beforeyouship — LLM Cost Modeling From Your Editor
@Indiegoing

Query realistic LLM cost models without leaving your editor. beforeyouship models the **true monthly cost** of an LLM app architecture — retries, prompt caching, batch discounts, infra overhead, and 3×/10× growth — across GPT-5.x, Claude, Gemini, DeepSeek, and more. Not a token calculator: a planning tool for the design phase, before you commit to a stack. **No API key needed to try it** — demo mode covers the six free-tier models. A Pro key from [beforeyouship.dev](https://beforeyouship.dev) unlocks the full 18-model catalog. ## What you can ask - "How much will a RAG chatbot cost at 10,000 requests/day?" - "Compare Claude Haiku vs Gemini Flash pricing for my workload" - "What's the cheapest model for a multi-step agent at scale?" - "Show me current per-token prices for Anthropic models" ## Tools ### `estimate_cost` Full cost model for an architecture at a given usage level. Returns Naive / Realistic / Worst Case monthly cost per model, 3×/10× growth scenarios, and an opinionated recommendation with reasoning. ### `get_model_prices` Current per-1M-token pricing — input, output, cached input, batch — with context windows and staleness metadata. ### `list_archetypes` Seven preset architecture patterns (simple chatbot, chatbot with history, RAG pipeline, multi-model router, coding assistant, document processor, multi-step agent) used as starting points for estimates. ## Setup **Claude Code:** ​```bash claude mcp add --transport http beforeyouship https://beforeyouship.dev/api/mcp ​``` **Cursor / other clients** — add a remote server: ​```json { "mcpServers": { "beforeyouship": { "type": "streamable-http", "url": "https://beforeyouship.dev/api/mcp" } } } ​``` Add an `Authorization: Bearer bys_...` header with a Pro key for the full catalog. ## Try it > Estimate the monthly cost of a RAG pipeline at 10,000 requests/day

a day ago