{"id":48442706,"url":"https://github.com/emredeveloper/mcp-render","last_synced_at":"2026-04-06T16:04:28.341Z","repository":{"id":336310190,"uuid":"1148956646","full_name":"emredeveloper/MCP-Render","owner":"emredeveloper","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-03T20:52:19.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-04T08:46:13.711Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emredeveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-03T15:03:48.000Z","updated_at":"2026-02-03T20:52:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/emredeveloper/MCP-Render","commit_stats":null,"previous_names":["emredeveloper/mcp-render"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/emredeveloper/MCP-Render","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredeveloper%2FMCP-Render","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredeveloper%2FMCP-Render/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredeveloper%2FMCP-Render/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredeveloper%2FMCP-Render/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emredeveloper","download_url":"https://codeload.github.com/emredeveloper/MCP-Render/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredeveloper%2FMCP-Render/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31479013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T14:34:32.243Z","status":"ssl_error","status_checked_at":"2026-04-06T14:34:31.723Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-06T16:03:57.497Z","updated_at":"2026-04-06T16:04:28.322Z","avatar_url":"https://github.com/emredeveloper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCP Server - Render Deployment (SSE Transport)\n\nThis project is a sample **Model Context Protocol (MCP)** server that runs on Render using **SSE (Server-Sent Events)** transport.\n\n## Features\n\n- **HTTP + SSE Transport:** Runs as a Render Web Service\n- **Tools:**\n  - `get_users`: List all users\n  - `get_user_by_id`: Get a user by ID\n  - `get_server_stats`: Get server stats\n  - `calculate`: Basic math (add, subtract, multiply, divide)\n  - `erp_list_customers`: Mock ERP customers (read-only)\n  - `erp_get_customer`: Mock ERP customer by ID\n  - `erp_list_orders`: Mock ERP orders (read-only)\n  - `erp_get_order`: Mock ERP order by ID\n  - `erp_list_invoices`: Mock ERP invoices (read-only)\n  - `erp_list_inventory`: Mock ERP inventory (read-only)\n  - `db_create`: Create SQLite DB (optional schema)\n  - `db_list_tables`: List SQLite tables (read-only)\n  - `db_table_schema`: Show table schema (read-only)\n  - `db_query`: Run SELECT/WITH queries (read-only)\n  - `db_exec`: Run INSERT/UPDATE/DELETE/CREATE (write)\n- **Resources:**\n  - `data://users`: Users list (JSON)\n  - `data://stats`: Server stats (JSON)\n\n## Endpoints\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/` | GET | API info |\n| `/health` | GET | Health check (for Render) |\n| `/sse` | GET | SSE connection (MCP client connects here) |\n| `/message` | POST | MCP messages (client to server) |\n\n## Local Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build TypeScript\nnpm run build\n\n# Start server\nnpm start\n\n# Watch mode\nnpm run dev\n```\n\nThe server runs on `http://localhost:8080`.\n\n## Deploy to Render\n\n### 1. Push to GitHub\n\n```bash\ngit init\ngit add .\ngit commit -m \"MCP Server SSE\"\ngit remote add origin https://github.com/yourusername/mcp-server-sse.git\ngit push -u origin main\n```\n\n### 2. Create a Render Web Service\n\n1. Log in to the Render Dashboard\n2. Select **New \u003e Web Service**\n3. Connect your GitHub repo\n4. Use these settings:\n   - **Runtime:** Docker\n   - **Plan:** Free (or your preferred plan)\n   - **Dockerfile Path:** `./Dockerfile`\n   - **Port:** `8080`\n5. Click **Deploy**\n\n### 3. Deploy with Blueprint (Optional)\n\nYou can deploy using `render.yaml`:\n\n1. Go to Render Blueprints\n2. Select **New Blueprint Instance**\n3. Choose your repo\n4. Deploy\n\n## MCP Client Usage\n\nTo connect to the MCP server over SSE, the client must use the SSE URL.\n\n### Claude Desktop Config (example)\n\n```json\n{\n  \"mcpServers\": {\n    \"render-server\": {\n      \"url\": \"https://your-service.onrender.com/sse\"\n    }\n  }\n}\n```\n\n### Local Development Config\n\n```json\n{\n  \"mcpServers\": {\n    \"local-server\": {\n      \"url\": \"http://localhost:8080/sse\"\n    }\n  }\n}\n```\n\n## API Testing\n\n### Health Check\n```bash\ncurl http://localhost:8080/health\n```\n\n### SSE Connection (in a new terminal)\n```bash\ncurl http://localhost:8080/sse\n```\n\n### Send MCP Message\n```bash\ncurl -X POST http://localhost:8080/message \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"jsonrpc\": \"2.0\",\n    \"id\": 1,\n    \"method\": \"tools/list\"\n  }'\n```\n\n## Logging\n\nTool calls are logged as JSON lines. By default logs go to stdout.  \nSet `LOG_FILE` to write logs to a file instead.\n\n## SQLite\n\nThe server can create and query a local SQLite database.\n\nEnv vars:\n- `SQLITE_FILE` (default: `./data/app.db`)\n\nExample usage:\n- `db_create` with `schema_sql: \"CREATE TABLE items(id INTEGER PRIMARY KEY, name TEXT);\"`\n- `db_list_tables`\n- `db_table_schema` with `table: \"items\"`\n- `db_query` with `sql: \"SELECT * FROM items\"`\n - `db_exec` with `sql: \"INSERT INTO items(name) VALUES('Elma'),('Armut')\"`\n\n## Project Structure\n\n```\n.\n├── src/\n│   └── index.ts          # MCP server code (Express + SSE)\n├── dist/                 # Compiled JavaScript (after build)\n├── Dockerfile            # Docker image\n├── render.yaml           # Render blueprint\n├── package.json          # NPM dependencies\n├── tsconfig.json         # TypeScript config\n└── README.md             # This file\n```\n\n## Technologies\n\n- **@modelcontextprotocol/sdk:** MCP Server SDK\n- **Express:** HTTP framework\n- **SSE:** Server-Sent Events transport\n- **TypeScript:** Type-safe development\n- **Docker:** Containerization\n- **Render:** Cloud deployment\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femredeveloper%2Fmcp-render","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femredeveloper%2Fmcp-render","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femredeveloper%2Fmcp-render/lists"}