# FileMaker MCP Server
This project implements a Model Context Protocol (MCP) server that dynamically exposes FileMaker scripts as tools. It uses Gradio to provide a user interface for interacting with these tools.
## Setup
1. **Clone the repository:**
```bash
git clone https://github.com/mw777eds/filemaker_mcp_local/
cd filemaker_mcp_local
```
2. **Create a virtual environment:**
```bash
python3 -m venv venv
source venv/bin/activate
```
3. **Install dependencies:**
```bash
pip install -r requirements.txt
```
4. **Configure Environment Variables:**
Create a `.env` file in the project root with the following variables:
```env
FM_USERNAME=your_filemaker_username
FM_PASSWORD=your_filemaker_password
FM_HOST=your_filemaker_host
FM_DATABASE=your_filemaker_database
FM_LAYOUT=your_filemaker_layout
```
Replace the placeholder values with your actual FileMaker credentials and database details.
## Running the Server
1. **Activate the virtual environment** (if not already active):
```bash
source venv/bin/activate
```
2. **Run the server script:**
```bash
python gradio_mcp_server.py
```
This will start both the MCP server (listening on stdin/stdout for the MCP protocol) and a Gradio server (typically on port 7860) providing a web UI for the dynamically created tools.
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mw777eds/filemaker_mcp_local'
If you have feedback or need assistance with the MCP directory API, please join our Discord server