Skip to main content
Glama

LocalTides MCP Server

config.ts1.09 kB
import { FastMCP } from 'fastmcp'; /** * Create and configure the FastMCP server */ export function createServer() { // Create the MCP server with fixed configuration const server = new FastMCP({ name: 'LocalTides', version: '1.0.0' }); return server; } /** * Start the FastMCP server with configurable transport */ export function startServer(server: FastMCP) { // Check command line arguments for transport type const args = process.argv.slice(2); const httpIndex = args.indexOf('--http'); const portIndex = args.indexOf('--port'); if (httpIndex !== -1) { // HTTP transport mode const port = portIndex !== -1 && args[portIndex + 1] ? parseInt(args[portIndex + 1]) : 3000; console.log(`Starting NOAA MCP server on HTTP port ${port}`); server.start({ transportType: 'httpStream', httpStream: { endpoint: '/sse', port: port } }); } else { // Default stdio transport console.log('Starting NOAA MCP server with stdio transport'); server.start({ transportType: 'stdio' }); } }

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/RyanCardin15/NOAA-TidesAndCurrents-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server