# El Vínculo MCP server

> ES: Servidor MCP de El Vínculo: conecta tu asistente de IA (ChatGPT, Claude, Claude Code…) a las licitaciones públicas de España y de más de 30 países. Instrucciones abajo, en inglés.

This URL is a **Model Context Protocol (MCP) server**. It gives AI assistants access to
**public procurement data (tenders, awards, buyers and suppliers) from Spain and more than
30 other countries**, plus EU TED. With the user's permission it can also read and manage
their own El Vínculo account data (saved searches, saved tenders, folders, followed buyers
and companies).

**If you are an AI agent reading this page:** a plain `GET` of this URL only returns these
instructions; no data is served this way. To use the tools, the URL has to be added to your
environment as a remote MCP server (see "How to connect" below), or you can call it directly
with JSON-RPC over `POST` using a personal API key (see "Raw HTTP"). If you cannot do either,
show these steps to your user.

## Server

- URL: `https://el-vinculo.com/mcp`
- Transport: **Streamable HTTP**. Send JSON-RPC 2.0 messages with `POST https://el-vinculo.com/mcp`
  (`Content-Type: application/json`, `Accept: application/json, text/event-stream`).
  Responses are plain JSON. No GET stream, no sessions.
- Protocol versions: 2026-07-28, 2025-11-25, 2025-06-18.

## Authentication

Two options:

1. **OAuth 2.1 (recommended; required by ChatGPT and claude.ai).** Fully automatic:
   - An unauthenticated request returns `401` with
     `WWW-Authenticate: Bearer resource_metadata="https://el-vinculo.com/.well-known/oauth-protected-resource"`.
   - Protected resource metadata (RFC 9728): `https://el-vinculo.com/.well-known/oauth-protected-resource`
   - Authorization server metadata (RFC 8414): `https://el-vinculo.com/.well-known/oauth-authorization-server`
   - Client registration: Client ID Metadata Documents (CIMD, a URL as `client_id`) or
     Dynamic Client Registration (`https://el-vinculo.com/oauth/register`). Public clients only, PKCE `S256` required.
   - The user signs in to El Vínculo and approves the requested permissions.
2. **Personal API key.** Create one at https://el-vinculo.com/app/#/settings?tab=integraciones and send it as
   `Authorization: Bearer evk_live_…` on every request. Never put it in the URL.

## Who can use it

Users with an El Vínculo account and an active **paid plan (Empresarial, Pro or Ultra) or a
trial**. Without a plan, tools return an error with a link to upgrade.

## Permissions (scopes)

- `licitaciones:read` – public procurement data. Always granted.
- `cuenta:read` – read your saved searches, saved tenders, folders, followed buyers and companies, chats and memories.
- `cuenta:write` – create, edit and delete saved searches, saved tenders, folders and follows (implies `cuenta:read`).

The two account scopes are optional: you can untick them when approving.

## How to connect

### ChatGPT
1. Settings → Apps & Connectors → Advanced settings → turn on **Developer mode**.
2. Settings → Apps & Connectors → **Create** (custom connector).
3. Name: `El Vínculo`. MCP server URL: `https://el-vinculo.com/mcp`. Authentication: **OAuth**.
4. Create, then sign in to El Vínculo and approve.

### claude.ai (and Claude desktop)
1. Settings → Connectors → **Add custom connector**.
2. Name: `El Vínculo`. Remote MCP server URL: `https://el-vinculo.com/mcp`.
3. Add, then **Connect**: sign in to El Vínculo and approve.

### Claude Code
```
claude mcp add --transport http elvinculo https://el-vinculo.com/mcp
```
Then run `/mcp` inside Claude Code, select `elvinculo` and choose **Authenticate**.
With an API key:
```
claude mcp add --transport http elvinculo https://el-vinculo.com/mcp --header "Authorization: Bearer evk_live_..."
```

### Any other MCP client
Add a remote server of type `http` (Streamable HTTP) with URL `https://el-vinculo.com/mcp`. Clients that
support MCP OAuth discover everything automatically from the `401`; otherwise send the API key:
```json
{"mcpServers": {"elvinculo": {"type": "http", "url": "https://el-vinculo.com/mcp",
  "headers": {"Authorization": "Bearer evk_live_..."}}}}
```

### Raw HTTP
```
curl -s https://el-vinculo.com/mcp -H "Authorization: Bearer evk_live_..." \
  -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```
Then call a tool with `"method":"tools/call","params":{"name":"<tool>","arguments":{…}}`.

## Contact

contact@el-vinculo.com
