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 dev
- Create one configuration file to manage all your MCP servers:
- Clone the Github Repository
- Navigate to
/lunar/mcpx/packages/mcpx-server/
. - Create the config directory
mkdir config
. - Navigate to config folder using
cd config
. - Create a configuration file
mcp.json
. - MCPX will use the
/lunar/mcpx/packages/mcpx-server/config/mcp.json
file for centralized configuration management.
- Copy the following configuration example into
mcp.json
:
{
"mcpServers": {
"time": {
"command": "uvx",
"args": ["mcp-server-time", "--local-timezone=America/New_York"]
}
}
}
This configuration uses a single MCP server,
mcp-server-time
, that requires no credentials, for quick-start set up.
note
- MCPX runs by default on port
9000
, or via a custom port supplied via thePORT
environment variable. - MCPX loads a general configuration file listing general application configuration at
mcpx-server/config/app.yaml
which can be changed using theAPP_CONFIG_PATH
environment variable.
Congratulations!
You have now set up your MCPX. You should see the following lines to indicate a successful installation:
Starting mcpx server... ⚡️
Server started on port 9000