Get Started Locally
Set Up Locally
- Clone the repository and install dependencies for mcpx-server:
git clone https://github.com/TheLunarCompany/lunar.git
cd lunar/mcpx
npm install
- Build:
npm run build:deps
- Run the server:
cd packages/mcpx-server
npm run start
-
Create a
config
directory withmkdir config
. We will use it in order to easily mount config to MCPX. -
Place the following config under
mcpx-server/config/mcp.json
. It uses a single MCP server that requires no credentials, for quick start set up.
{
"mcpServers": {
"time": {
"command": "uvx",
"args": ["mcp-server-time", "--local-timezone=America/New_York"]
}
}
}
MCPX runs by default on port :9000
, or via a custom port supplied via the PORT
environment variable.
MCPX loads a general configuration file listing general application configuration at mcpx-server/config/app.yaml
(overridable by the APP_CONFIG_PATH
environment variable).
Congratulations!
You have now set up your MCPX. You should see the following lines to indicte a successful installation:
Starting mcpx server... ⚡️
Server started on port 9000