SWEN AI
SWEN.AI MCP Server (reference source)
This repository contains the reference implementation of the source code behind the public Model Context Protocol (MCP) server hosted at:
https://swen.ia.br/api/mcpSWEN.AI is a Brazilian portal covering AI news, model benchmarks, tools and tutorials. This MCP server exposes that data to AI agents and MCP-compatible clients (Claude, Claude Code, etc.) with no API key required (IP-based rate limiting only).
This is not a runnable standalone package
The files here are copied verbatim from our private production monorepo so that developers can read, audit, and understand exactly what the hosted endpoint does. Authentication, rate-limiting, and infrastructure code are intentionally not included — see Security below.
To use the server, connect your MCP client directly to the hosted endpoint; there is nothing to install or run locally.
Connecting an MCP client
{
"mcpServers": {
"swen-ai": {
"url": "https://swen.ia.br/api/mcp"
}
}
}Related MCP server: PT-Edge
Available tools
Tool | Description |
| Search/list published AI news articles |
| Fetch a single news article by slug |
| List tracked AI models |
| Fetch a single AI model by slug |
| Get the canonical Artificial Analysis Intelligence Index ranking |
| Search/list AI tools in the directory |
| List tutorials |
Every tool is a thin wrapper: it validates input, calls a fetchers.ts
function to read from Postgres (via Supabase's REST API using the public
anon key), maps the row to a stable public contract (mappers.ts /
types.ts), and returns JSON.
Files in this repo
src/lib/api-v1/
mcp-server.ts tool registration (the 7 tools above)
fetchers.ts data-fetching functions (reads only, public anon key)
mappers.ts DB row → public contract mapping
types.ts public contract types (NewsItem, ModelItem, ...)
src/lib/ranking/
fetch-aa.ts canonical Artificial Analysis ranking logic (dedup + sort)
src/lib/benchmark/
freshness.ts filters out stale benchmark scores
src/lib/i18n/
config.ts locale constants used by the mappersThese are copied byte-for-byte from the production repo. They are kept in sync manually; they may lag the deployed version slightly.
Also see
REST API docs (API key required, higher rate limits): https://swen.ia.br/developers
Full portal: https://swen.ia.br
Security
This repo deliberately excludes:
auth.ts— API key validation and rate-limiting logickey-crypto.ts— API key hashingAny environment variable, credential, or internal Supabase project reference beyond the two values that are public by design:
NEXT_PUBLIC_SUPABASE_URLandNEXT_PUBLIC_SUPABASE_ANON_KEY(already shipped in every page's browser bundle on swen.ia.br; access is governed by Postgres Row Level Security, not by keeping this value secret).
If you believe you've found a security issue with the hosted endpoint, please report it privately rather than opening a public issue.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/luisroquette/swen-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server