loading…
Search for a command to run...
loading…
A FastMCP-powered server for accessing curated travel spot data from a PostgreSQL database. It provides tools to retrieve major attractions, supporting sites, a
A FastMCP-powered server for accessing curated travel spot data from a PostgreSQL database. It provides tools to retrieve major attractions, supporting sites, and the top ten most popular destinations.
A lightweight MCP-powered backend for serving curated travel spots straight from model.spot. The FastMCP server in trip.py exposes tools that let any compatible client request the latest main attractions, supporting sites, and the top ten most popular destinations.
major_views, sub_views, and top_10_spots tools implemented via FastMCP.model/spot.py with GeoAlchemy spatial support..env plus sensible defaults in util/database.py.python -m pip install -r requirements.txt
Copy .env.example (if you create one) or create a .env file with at least:
DATABASE_URL=postgresql+psycopg://user:password@localhost/spot_db
LOG_LEVEL=INFO
util/database.py will fall back to postgresql+psycopg://postgres:password@localhost/spot_db when nothing is provided.
public.spot table matching model.spot.Spot.location geometry column.python trip.py
The MCP server listens on stdio and exposes three async tools:
major_views – active spots with popularity > 3000.sub_views – active spots with 1 < popularity < 3000.top_10_spots – ten most popular active spots.Each tool returns JSON data from the respective helper in src/action.py.
util/logging_setup.py configures a single console handler; change LOG_LEVEL or wrap calls with your own handlers if you need file logging.
This project uses FastMCP to create an MCP server. The server exposes three tools that clients can call to retrieve travel spot data.
{
"servers": {
"trip-mcp": {
"command": "uv",
"args": [
"--directory",
"/{Project Parent Location}",
"run",
"trip.py"
],
"env": {
}
}
// add your MCP stdio servers configuration here
// example:
// "my-mcp-server": {
// "type": "stdio",
// "command": "my-command",
// "args": [],
// "env": {
// "TOKEN": "my_token"
// }
// }
}
}
# g o g o - b a c k e n d - m c p 6
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"gogo-backend-mcp": {
"command": "npx",
"args": []
}
}
}